Click here to Skip to main content
15,919,422 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Write a program that calculates and displays the amount of money to charge for a seminar, a lunch amount, and the total of the two. The user will enter the number of people attending and a lunch option. Use the chart below for your calculations, using named constants for the values. If the customer would like to have lunch provided, add an extra $5 per person to the total. Display the output in currency format, aligned by the decimal points.

Number of people	Fee per person
1 - 5	$125
6 - 20	$100
21 or more	$75
 Can anybody help me this ?

What I have tried:

i dont understand the fee per person
Posted
Updated 28-Oct-22 13:23pm

This is very simple math.

Number of people times the seminar fee. The fee is determined by the table listed in the assignment.

If the seminar is going to provide lunch, there's a $5 fee per person attending the seminar. That is number of people times 5.

Once you have both totals, you add them up and that's the total fee.
 
Share this answer
 
Number of people Fee per person
1 - 5 $125
6 - 20 $100

If the seminar is attended by 8 participants, each pays $100 according to the list plus food if ordered.
So the number of participants determines the price category for all participants of the seminar.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900