Question: Python Please For this lab, you will simulate a bank account which allows deposits, withdrawals, and repeating payments. Your program will prompt the user for

Python Please  Python Please For this lab, you will simulate a bank account
which allows deposits, withdrawals, and repeating payments. Your program will prompt the

For this lab, you will simulate a bank account which allows deposits, withdrawals, and repeating payments. Your program will prompt the user for a starting balance, and present a menu with the following features: - If the user selects option d (for Deposit), use a validation loop to ensure that the input is a positive number, and update the balance by adding the deposit amount. Display the amount of the deposit and the new balance. - If the user selects option w (for Withdrawal), ensure it is a positive number and, if the user has sufficient funds, update the balance by subtracting the withdrawal amount. Display the amount of the withdrawal and the new balance. If the user does not have enough money, print a message stating that the withdrawal request is denied, and get the next menu choice. - If the user selects option r (for Repeating payments), check if the user has a sufficient balance to cover all requested payments (you may assume that the payment amount and number of payments will be positive values). If the user has sufficient funds, apply each payment in turn, displaying the payment number, amount, and resulting balance at each point (see example below). If the funds are insufficient print a denial message, and get the next menu choice. - If the user selects option q (to Quit), print the final balance and a message wishing the user a good day. Hint: Do not handle this option inside the loop. If the user makes any other choice, print a statement to inform the user that they have chosen an invalid menu option. Requirements: - Use floating point values for all monetary amounts, and an integer for the number of payments. - All monetary values must be formatted as currency: no space between the dollar sign and the amount, use commas as thousands separators, and output 2 decimal places. - The menu should be implemented by an if-elif-else clause. - Menu input and input validation loops must be implemented with while. - The repeating payment operation must use a for loop. Sample output - Your program must exactly match the output below. Enter starting batance: 875.25 You have a batance of 5875.25 Enter d for Deposit, w for Withdrawal, r for Repeating payments, or q to Quit: d Enter deposit anount: 50 Deposit amount must be positive. Enter deposit amount: 50 rou deposited \$50.00. Your balance is now $925.25 Enter d for Deposit, w for withdrawal, r for Repeating payments, or q to quit: w Enter withdrawal anount: 1000 You do not have sufficient funds. Withdrawal denied! Enter d for Deposit, w for withdrawal, r for Repeating payments, or q to Quit: w Enter withdrawal anount: 250.16 You withdrew $250.16. Your balance is now $675.09 Enter d for Deposit, w for Withdrawal, r for Repeating payments, or q to Quit: r Enter payment amount: 175.97 Enter number of payments: 5 You do not have the funds to cover requested payments. Payments denied! Enter d for Deposit, w for Withdrawal, r for Repeating payments, or q to quit: r Enter payment atiount: 125.50 Enter number of paynents: 4 Payment 1 for 5125,50 made. Your balance is now $549,59. Payment 2 for 5125.50 made. Your balance is now 5424.09. Payment 3 for 5125.50 made. Your balance is now $298.59. Payment 4 for 5125.50 made. Your batance is now $173.09. Enter d ror Deposit, w for Withdrawal. r for Repeating payments. or q to quit: s rou have made an invalid choice. Enter d for Deposit, for Withdrawal, r for Repeating payments, or q to ouit: q Your balance is 5173.09. Have a nice dayl

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!