Question: Jacob Weinstein wants a program that displays his savings account balance at the end of the month, given the beginning balance, total deposits, and total

Jacob Weinstein wants a program that displays his savings account balance at the end of the month, given the beginning balance, total deposits, and total withdrawals.

a. Using the chart shown earlier in Figure 4-12 as a guide, enter the input, processing, and output items, as well as the algorithm, in the first column.

Figure 4-12

double price = 100.0;

price = price * 0.95;

The assignment statement assigns the double number 95.0 to the price variable.

b. Desk-check the algorithm twice. For the first desk-check, use 2545.75, 409.43, and 210.65 as the beginning balance, total deposits, and total withdrawals. For the second desk-check, use 1125.33, 23, and 800.94.

c. Enter the C++ instructions in the second column of the chart, and then desk-check the program using the same data used to desk-check the algorithm.

Step by Step Solution

3.32 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

See the Introductory11cpp file which is contained in either the Cpp8Chap04Introductory11 ProjectIM f... 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!