Question: C + + Define a function FindCostPerMenu ( ) that takes two integer parameters as the menu chosen and the number of people attending a

C++ Define a function FindCostPerMenu() that takes two integer parameters as the menu chosen and the number of people attending a dinner, and returns the menu's cost per person as an integer. The cost of the menu is returned as follows:
Cost per person
Menu <35 people 35-104 people >=105 people
1807060
2706535
3755525
If menu number is not in the above table, return 100.
Ex: If the input is 130, then the output is:
80

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!