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.

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.

First desk-check 2456.75 Second desk-check 9855.89 Beginning balance: Deposits: Withdrawals: 200, 56.50,

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

Step by Step Solution

3.38 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Advanced24cpp displays the ending balance in an account given the beginning balance deposits and withdrawals Createdrevised by on include include using namespace std int main double beginningBal 00 do... View full answer

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 An Introduction Programming Questions!