please create the corresponding flowchart for each scenario. use decision structures (if/else, nested…

please create the corresponding flowchart for each scenario. use decision structures (if/else, nested decisions).\nscenario 1: library late fees (expanded)\n· input: book return date vs. due date.\n· if the book is returned on time → print \no fee\.\n· if the book is overdue → calculate the number of days late.\n · 1 - 7 days → \fee = $5\.\n · 8 - 30 days → \fee = $15\.\n · over 30 days → \book lost, replacement fee = $50\.\n· next decision: is this the users 3rd late book this semester?\n · yes → suspend borrowing privileges for 2 weeks.\n · no → borrowing privileges remain active.\nscenario 2: atm withdrawal\n· input: withdrawal amount.\n· if the amount > account balance → print \insufficient funds\.\n· if the amount is not a multiple of 20 → print \invalid amount, must be in multiples of 20\.\n· otherwise → dispense cash and deduct from balance.\nscenario 3: login validation\n· input: username and password.\n· if username is correct → check password.\n · if the password is correct → \access granted\.\n · else → \incorrect password\.\n· if the username is wrong → \user not found\.
Answer
Explanation:
Step1: For Scenario 1 (Library Late Fees)
Start with an oval - shaped start symbol. Then have a parallelogram for inputting book return date and due date. Connect it to a diamond for the decision "Is book returned on time?". If yes, connect to a rectangle that prints "No fee" and then to an end symbol. If no, connect to a rectangle that calculates number of days late. Then have another diamond for "Number of days late?". For 1 - 7 days, connect to a rectangle that prints "Fee = $5", for 8 - 30 days to a rectangle that prints "Fee = $15", for over 30 days to a rectangle that prints "Book lost, replacement fee = $50". Then have a diamond for "Is this the user's 3rd late book this semester?". If yes, connect to a rectangle that says "Suspend borrowing privileges for 2 weeks", if no to a rectangle that says "Borrowing privileges remain active", and then to an end symbol.
Step2: For Scenario 2 (ATM Withdrawal)
Start with an oval - shaped start symbol. Then have a parallelogram for inputting withdrawal amount. Connect it to a diamond for the decision "Is amount > account balance?". If yes, connect to a rectangle that prints "Insufficient funds". If no, connect to a diamond for "Is amount a multiple of 20?". If no, connect to a rectangle that prints "Invalid amount, must be in multiples of 20", if yes to a rectangle that says "Dispense cash and deduct from balance", and then to an end symbol.
Step3: For Scenario 3 (Login Validation)
Start with an oval - shaped start symbol. Then have a parallelogram for inputting username and password. Connect it to a diamond for the decision "Is username correct?". If yes, connect to a diamond for "Is password correct?". If yes, connect to a rectangle that prints "Access granted", if no to a rectangle that prints "Incorrect password". If username is wrong in the first diamond, connect to a rectangle that prints "User not found", and then to an end symbol.
Answer:
Flowcharts are described above for each scenario following the decision - making steps provided.