Question: OLA 4 : Bank Application ( Input , Processing, Output, Decision Structures, Repetition Structures ) Description: For this lab, you will simulate a bank account

OLA 4: Bank Application (Input, Processing, Output, Decision Structures, Repetition Structures) Description: For this lab, you will simulate a bank account application which allows deposits, withdrawals, and repeating payments. Problem Specification: 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 Deposits): o use a validation loop to ensure that the input is a positive number o update the balance by adding the deposit amount o display the amount of the deposit and the new balance. o get the next menu choice. If the user selects option w (for Withdrawal): o prompt the user to enter the withdrawal amount o ensure the withdrawal amount is a positive number, and if the user has sufficient funds (balance), update the balance by subtracting the withdrawal amount. o display the amount of the withdrawal and the new balance. o 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): o prompt the user to enter the payment amount and the number of payments o 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). And then get the next menu choice. o if the funds are insufficient print a denial message and get the next menu choice. If the user selects option q (to Quit): o print the final balance and a message wishing the user a good day. o 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 selected an invalid menu option. Requirements: The menu options should be separated by tab space. (see sample output) Note there is a newline, every time the user choose option from the menu before the next display message on the screen. (see sample output) 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. Note the repeating payments display message starts with Payment 1(NOT Payment 0). Sample Output (Your Program must exactly match the output below)
Enter the starting balance: 10000.89
You have a balance of $10,000.89.
d-Deposit ,-withdrawal r-Repeating payments ,q-Quit
Please choose from one of the above options: d
Enter the deposit amount: -1000.65
Deposit amount must be positive. Enter the deposit amount: 1000.65
You deposited $1,000.65. Your new balance is $11,001.54.
d-Deposit ,w-withdrawal ,-Repeating payments
q - Quit
Please choose from one of the above options: w
Enter the withdrawal amount: 12000
You do not have sufficient funds. Withdrawal Denied!
d - Deposit
w - withdrawal
r-Repeating payments
q- Quit
Please choose from one of the above options: w
Enter the withdrawal amount: 1200.56
You withdrew $1,200.56. Your new balance is $9,800.98.
d-Deposit ,-withdrawal r-Repeating payments ,-Quit
Please choose from one of the above options: r
Enter Payment Amount: 2000.67
Enter the number of payments: 6
You do not have sufficient funds to cover requested payments. Payments denied! d-Deposit ,-withdrawal r-Repeating payments q-Quit
Please choose from one of the above options: r
Enter Payment Amount: 478.87
Enter the number of payments: 5
Payment 1 for $478.87 is made. Your new balance is $9,322.11.
Payment 2 for $478.87 is made. Your new balance is $8,843.24.
Payment 3 for $478.87 is made. Your new balance is $8,364.37.
Payment 4 for $478.87 is made. Your
 OLA 4: Bank Application (Input, Processing, Output, Decision Structures, Repetition Structures)

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!