Question: Write a Menu class that runs 6 game class Look at the 6 games The output should be like this Project Menu: Tuesday February 13
Project Menu: Tuesday February 13 The next 7 projects work together and when finished run as one program. One of the important objectives in these game programs is to solve the problem using methods to break the problem up. Please keep this objective in mind. Write a Menu class that runs 6 game classes. The Menu class has three methods: One for introducing the games program to the client, one that reads the input guaranteeing that the input is between 1 and 7 inclusive, and one for printing the menu. Please use a switch statement to choose one of the 7 choices, and a while loop to allow the client to continue playing games if he wishes. Create 6 more classes that are "stubs" of the six games that you will write as solutions for the next six projects. These stubs can be called from the Menu program, and can be used to test the syntax of the Menu program. Once the Menu program is written and debugged you can start replacing each stub with a game that satisfies the next 6 projects. (Duplicate Character games output on my website) import java.util.Scanner public class DiscriptiveName public static scanner scan new Scanner (Systemin); // This method controls two while loops public static void discriptiveMethod() throws InterruptedException introduction (); int value String choice "Yes"; while (choice.equalsignoreCase("Yes")) // outer while loop allows the game to be repeated while() This inner while loop plays the game. sleepDemonstration) choice shouldIStayInLoop) private static void sleepDemonstration() throws InterruptedException private static void introduction) throws InterruptedException This introduciton method is private All the methods called from descriptiveMethod() are private.") private static String shouldIStayInLoopf string choice system.out.printin(apacesWould you like to play again?") System.out.println (spaces choice = scan . nextLine(); please enter yes o r no ) return choice;)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
