Create a program that displays the ending balance in a savings account, given the beginning balance, the

Question:

Create a program that displays the ending balance in a savings account, given the beginning balance, the deposit amounts, and the withdrawal amounts. Use two loops in the program: one to get the deposit amounts, and the other to get the withdrawal amounts.

a. Create an IPO chart for the problem, and then desk-check the algorithm two times, using the data shown in Figure 7-52.

First desk-check 2456.75 Second desk-check 9855.89 Beginning balance: Deposits: Withdrawals: 200, 56.50, 25.78, 3.50 25, 100 1200, 75 900.75 Figure 7-52

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 7-42. Then code the algorithm into a program. 

c. Desk-check the program using the same data used to desk-check the algorithm. 

d. If necessary, create a new project named Advanced24 Project, and save it in the Cpp8\Chap07 folder. Enter your C++ instructions into a source file named Advanced24.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the ending balance with two decimal places. e. Save and then run the program. Test the program using the same data used to deskcheck the program.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: