Create a program for the sales manager at computer haven a


Message : I need help programing this...

In this exercise, you will create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local companies. Figure 7 - 64 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.

Problem Specification:

In this exercise, you will create a program for the sales manager at Computer Haven, a small business that offers motivational seminars to local companies. Figure 7 - 64 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.

Number of people accompany registers

1 - 3

4 - 9

10 or more

Charge per person ($)

150

100

90

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 in Figure 7 - 14 in the chapter. Then code the algorithm into the program.

c. Desk-check the program using the same data used to desk-check the algorithm.

d. If necessary, create a new project call Advanced34 Project and save it in the Cpp7/Chap07 folder. Enter your C++ instructions into a source file called intermediate34.cpp. Also enter appropriate comments and any additional instructions required by the complier. Display the total charge in fixed-point notation with two decimals.

e. Save and run the program. Test the program using the same data used to desk-check the program.

Input

Process

Output

Number of registrants

 

Processing items: none

 

Algorithm:
1.Enter number of people registered

2.Display  total people registered

3.Enter the charge per person

4.Display charge per person

 

 

 

 

 

 

 

 

 

 

 

Total people registered

 

Total charge of registrants

 

Average charge per registrant

 

IPO Chart Info

C++ Code

Input

Number of Registrants

 

 

Processing

 

 

 

Output

 

 

Algorithm

 

 

 

 

 

 

 

 

 

//Input

 

 

 

//Processing

 

 

 

//Output

 

 

//Algorithm

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program for the sales manager at computer haven a
Reference No:- TGS01355768

Now Priced at $50 (50% Discount)

Recommended (96%)

Rated (4.8/5)