Problem

The sales manager at Premium Paper wants a program that allows her to enter the...

The sales manager at Premium Paper wants a program that allows her to enter the company’s income and expense amounts, which will always be integers. The number of income and expense amounts may vary each time the program is run. For example, the sales manager may need to enter five income amounts and three expense amounts. Or, she may need to enter 20 income amounts and 30 expense amounts. The program should calculate and display the company’s total income, total expenses, and profit (or loss).

a. Create an IPO chart for the problem, and then desk-check the algorithm three times. For the first desk-check, use the following income amounts: 5000, 7500, and 3350. Also use the following expense amounts: 125 and 999. For the second desk-check, use the following income amounts: 2450, 6700, 9000, and 5600. Also use the following expense amount: 4000. For the third desk-check, use an income amount of 8000 and an expense amount of 10000.

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-14. 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 Advanced33 Project and save it in the Cpp7\Chap07 folder. Enter your C++ instructions into a source file named Advanced33.cpp. Also enter appropriate comments and any additional instructions required by the compiler.

e. Save and then run the program. Test the program using the same data used to deskcheck the program.

Reference : figure 7-14

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search