Redisplays the menu after the user selected operation

Assignment Help Basic Computer Science
Reference no: EM131275048

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

Reference no: EM131275048

Questions Cloud

Identify risk and apply risk management processes : BSBRSK401 - Identify risk and apply risk management processes Review the scenario information contained in the Appendices of this assessment task and identify the internal and external context for risk management with respect to the MacVille scenario..
Identify the most senior leader of the organization : Identify and explain the stakeholder organization perspective: Payer (insurers, government payers, and employers); Provider (entities and individuals providing services in the health care system); Patient (consumers); or Producer (a product develo..
Explain formal and informal structures and decipher : Explain formal and informal structures and decipher between traditional and non-traditional frameworks. Describe the characteristics that set functional, divisional, and matrix structures apart.
State the hume-rothery rules and explain the rationale : Based on Hume-Rothery's conditions, which of the following systems would be expected to display unlimited solid solubility?
Redisplays the menu after the user selected operation : 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.
What is the mirror image rule : What must a party prove to recover under the theory of quasi-contract?- What is the mirror-image rule?- What is the mailbox rule?
Create action plan and calendar to move your business plan : Create an action plan and calendar to move your business plan forward? Review your long-term and short-term objectives and create a more cohesive plan to help meet your goal?
What is required to prove promissory estoppel : List the four types of consideration described in the text.-  What is required to prove promissory estoppel when consideration is missing?
List the three elements of accord and satisfaction : List and describe the three exceptions to the preexisting-duty rule.-  List the three elements of accord and satisfaction.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Collector approves some of requests

Step 1: a remote data collector publishes sensing tasks to all mobile users (e.g., through smartphones carried by users) in the system. A task contains a task identifier and a task description. Step 2: the mobile users who are interested in a tas..

  Applications of synchronous motors

How does a three-phase synchronous motor differ from a three-phase induction motor? Give a few applications of synchronous motors.

  In what ways do the experts foresee the use

Review the literature and analyze the strengths and weaknesses of both virtualization and cloud computing in providing secure and trusted systems.

  Input controls

Explain the function of input controls.Identify four (4) types of input control and explain the function of each.

  Create an application that allow a new customer order house

Create an application that will allow a new customer to order a house. You'll allow the customer to choose among four models (Aspen, Britattany, Colonial, and Dartmoor) by creating separate ButtonGroups.

  Show that a huffman tree can be constructed in linear time

Given a Huffman coding tree, which algorithm would you use to get the codewords for all the symbols? What is its time-efficiency class as a function of the alphabet size?

  Describe the php error reporting system

Describe the PHP error reporting system and how it can be used to debug PHP scripts and to avoid errors getting into webpages viewed by end users.

  Automated emails from google apps spreadsheet ?

How to send automated emails from google apps spreadsheet ?

  Cybersecurity plays in your use of that technology

Write a 3-4 page paper plus cover page on How information technology affects your everyday life and what role do you think Cybersecurity plays in your use of that technology. Write in APA 6th Edition

  Dramatic transformation of matter

Classically, before the 20th century, chemistry was defined as the science of the nature of matter and its transformations. It was therefore clearly distinct from physics which was not concerned with such dramatic transformation of matter.

  How you would plan an iis7 application hosting

From the first e-Activity, discuss the uses and advantages for an enterprise utilizing an SMTP server.

  The relevant theory and/or research inform

What specifically worked well? How do I know it worked well? What specifically worked least well? Why do I think that?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd