Jacob Weinstein wants a program that displays his savings account balance at the end of the month,

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 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.

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

Step by Step Answer:

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