Question: Requirements The class contains: A method called defaultMenu that returns a String array and has no parameters. When called, the method returns a string array
Requirements
The class contains:
A method called defaultMenu that returns a String array and has no parameters. When called, the method returns a string array containing the following elements: Cheeseburger "Chicken Sandwich", "Salad"
A method called customMenu that returns a String array and has an int parameter. When called, the method will create a new string array, then ask the user for items to place on the menu based on the int parameter. For example, if the call is customMenu the method will ask for items to put on the menu. Once the menu is complete, the method will return the created array.
A method called printMenu that has a void return and has a string array parameter. The method will output the number of items in the array and then the names of the menu items
In the main method:
a Create two string arrays
i Assign one to the call of defaultMenu
ii Assign one to the call of customMenu with a parameter of make up your own menu items
b Call printMenu with both arrays
Upload the following onto the assignment folder on canvas:
a The cs file
b Screenshot of the following:
i A call to printMenu, pass both menus created in steps and aii as arguments
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
