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 ≤ 65 people 66 - 95 people > 95 people
1 85 75 70
2 80 65 35
3 65 40 25

If menu number is not in the above table, return 125.

Ex: If the input is 1 60, then the output is:

85



Answer :

Other Questions