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
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.
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.
First desk-check Second desk-check Beginning balance:
2456.75 9855.89
Deposits: 200, 56.50, 25.78, 3.50 1200, 75
Withdrawals: 25, 100 900.75
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started