Question: Please help me get to know how to make a program like this, I dont exactly know what i have to do with it. A
Please help me get to know how to make a program like this, I dont exactly know what i have to do with it.
"A main program in a Menu Selection class that will allow the user to run programs from at least 4 different classes.Use the following methods internal to your Menu Selection Class:
private static displayMenu():void
private static getUserMenuChoice():String
private static displayWelcom():void
1 for introducing the welcome to the menu control program to the client, 1 for reading the input validating that the input is one of the menu choices, and 1 for displaying the menu.
Use a switch-statement to pick 1 of the menu choices, and a while or do-while loop to allow the client to continue selecting programs if they wish.Create local private methods that are static "stubs" of the program classes that you will use as solutions for the next projects.These stubs can be called from the main menu program and can be used to test the main menu program.Once the main program is written and debugged you can start replacing each stub with a program that satisfies each of the next projects.
NOTE:The methods called from the main program must have the word static as part of the method signature.For example, a method signature that could be used for printing the menu might be:
public static displayMenu():void.
Also note that because the methods in the program classes are static there is no need to instantiate new class objects.
For example:
This program allows you to run several programs that will use a random number generator.
Choose the program that you would like to run.
1) P.1
2) P.2
3) P.3
4) P.4
5) Quit.
"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
