Put the algorithms that you designed for questions 1 and 2


I have the pseudocode of this question but Im stuck on structuring the code into Java. the question is: Design a algorithm that displays the following menu, gets the user selection, and validates the selection.

Main Menu

1. Open a new document.

2. Close the current document.

3. Print the current document.

4. Exit the program

Enter your selection

The pseudocode is: Design a algorithm that displays the following menu, gets the user selection, and validates the selection.

Main Menu

1. Open a new document.

2. Close the current document.

3. Print the current document.

4. Exit the program

Enter your selection

The other question i need Java for are: 2.) Design a case structure that can be used with the algorithm. The case structure should call a module named openDocumnet if the user selected item 1, should call a module named closeDocument if the user selected item 2, should call a module named printDocument if the user selected item 3.

3.)Put the algorithms that you designed for Questions 1 and 2 together inside a loop that redisplays the menu after the user's selected operation is performed, or exits if the user selects item 4 from the menu.

4.)Look for ways to modularize the algorithm that you designed for Algorithm Workbench Question 3 and modify it accordingly

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Put the algorithms that you designed for questions 1 and 2
Reference No:- TGS01677822

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)