| CSCI 240 | Spring 2012 |
For this assignment, write a program that will calculate registration fees for a company that offers computer seminars. The customers are companies that may register more than one person for a seminar. The registration clerk will enter the number of the seminar (1, 2 or 3) and the number of people being registered.
The data consists of a seminar number and the number of people to be registered. The program will end when the clerk enters -999 for the seminar number
For each registration, the seminar number needs to be checked to assure that it is valid. If it is not, an error message must be displayed and the clerk should be prompted to enter another seminar number. If 5 or more people are being registered, there will be a 10% discount. The total owed will be calculated and displayed:
Use the following formulas for the calculations:
Seminar 1 costs $100. Seminar 2 costs $120. Seminar 3 costs $150. Use symbolic constants for these values. There is a 10% discount if 5 or more people are registered.
Display the total number of people registered and the total revenue for each seminar at the end of the program.
At the top of the C++ source code, include a documentation box that resembles the ones from program.
The program should be fully documented.
Use meaningful variable names.
Make sure and test the program with values other than the ones in the Sample Output.
Hand in a copy of the source code using Blackboard.
Seminar Registration Which seminar are you registering for (1,2,3,-999 to quit) 1 How many people are attending? 3 Total cost $300 Which seminar are you registering for (1,2,3, -999 to quit) 4 Invalid seminar number Which seminar are you registering for (1,2,3,-999 to quit) 3 How many people are attending? 5 Total cost $675 //Note - 10% discount is applied Which seminar are you registering for (1,2,3,2-999 to quit) 1 How many people are attending? 1 Total cost $100 Which seminar are you registering for (1,2,3,-999 to quit) -999 Seminar 1 - 4 $400 Seminar 2 - 0 $ 0 Seminar 3 - 5 $675