Question: Define a method findMenuCost ( ) that takes two integer parameters as the menu chosen and the number of people attending a dinner, and returns
Define a method findMenuCost 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: Define a method findMenuCost 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
If menu number is not in the above table, return
Ex: If the input is then the output is:
public class MenuFinder public static void mainString args int menuNumber; menuNumber scnrnextInt; System.out.printlnfindMenuCostmenuNumber numGuests;
Cost per person
Menu people people people
If menu number is not in the above table, return
Ex: If the input is then the output is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
