Menu

(Solved) : Instructions Use Loop Loop Following Program Unknown Numbers Customers Savings Account Bal Q37259700 . . .

Instructions: Use a while loop and loop followingprogram for unknown numbers of customers.

Savings Account Balance

Write a program that calculates the balance of a savings accountat the end of a period of time. It should ask the user for theannual interest rate, the starting balance, and the number ofmonths that have passed since the account was established. A loopshould then iterate once for every month, performing thefollowing:

A) Ask the user for the amount deposited into the account duringthe month. (Do not accept negative numbers.) This amount should beadded to the balance.

B) Ask the user for the amount withdrawn from the account duringthe month. (Do not accept negative numbers.) This amount should besubtracted from the balance.

C) Calculate the monthly interest. The monthly interest rate isthe annual interest rate divided by twelve. Multiply the monthlyinterest rate by the balance, and add the result to thebalance.

After the last iteration, the program should display the endingbalance, the total amount of deposits, the total amount ofwithdrawals, and the total interest earne

Expert Answer


Answer to Instructions: Use a while loop and loop following program for unknown numbers of customers. Savings Account Balance Writ…

OR