In this exercise, you create a program for the sales manager at Computer Haven, a smal
In this exercise, you create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local companies. Figure 7-53 (SEE ATTACHED BELOW) shows the charge for attending a seminar. Notice that the charge per person depends on the number of people the company registers. For example, the cost for four registrants is $400; the cost for two registrants is $300. The program should allow the sales manager to enter the number of registrants for as many companies as needed. When the sales manager has finished entering the data, the program should calculate and display the total number of people registered, the total charge for those registrants, and the average charge per registrant. For example, if one company registers four people and another company registers two people, the total number of people registered is six, the total charge is $700, and the average charge per registrant is $116.67.
a. Create an IPO chart for the problem and then desk-check the algorithm appropriately.
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 Advanced25 Project, and save it in the Cpp8Chap07 folder. Enter your C++ instructions into a source file named Advanced25.cpp. Also, enter appropriate comments and any additional instructions required by the compiler. Display the average charge with two decimal places.
e. Save and then run the program. Test the program using the same data used to desk-check the program.
FIGURE 7-53 (ATTACHED)
FIGURE 7-42 (ATTACHED
SAVE FILE AS HOMEWORK/3.CPP
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
