Question: Write a Java program: a . Write a main program - i . that reads a menu number and how many people attends. ii .
Write a Java program:
a Write a main program
i that reads a menu number and how many people attends.
ii Then, call findMenuCost
b 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
c Ex:
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
