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

  Application for a small catering business

For this assignment, you are required to design and develop a console (text-based) application for a small catering business. This application will simulate booking appointments, tracking catering jobs and processing payments.

  Assignment on user frustration

The quality of the user experience is very important to the success of an application. In the early days of computing, users often experienced long delays since computing power was poor and networks had comparatively slow throughput.

  Forcible overthrow of existing social and economic condition

Explain marx Karl's bourgeois/proletarian distinctions and why proletarian ends can be attained only by the forcible overthrow of existing social and economic conditions.

  Manufacturing process requires machining and finishing

A small business produces 3 types of cables: A, B, and C. The cost of in-house production is estimated to be $6, $12, and $10 per foot of A, B, and C respectively. The manufacturing process requires machining and finishing. The machining and finis..

  Describe the volume of a gas responds to pressure changes

kinetic-energy and pressure-energy changes correspond to pipe-size changes.

  Occupational health and safety survey

An occupational health and safety survey of 123 industrial accent claims have revealed that 71 were due to untidy working conditions and thus preventable.

  Find the point of intersection of the lines

find the point of intersection of the lines L1 : x(t) = 2-t y(t) = t ,z(t) = t-3 and L2 : x(u) = u + 1 , y(u) = 3u + 1 ,z(t) = u-2

  What is the result of removing the 10 from the 2-3 tree

To be sure that you fully understand the insertion algorithm, insert 32 into the 2-3 tree in Figure 19-11. The result should be the tree shown in Figure 19-6 b. Once again, compare this tree with the binary search tree in Figure 19-6 a and notice ..

  Security management

Reading and Research Assignment #1 Topic: Security Management 1. Search the Web and locate three (3) Web sites that relate to the topic. These sites could be white papers or research documents found on research databases, commercial or non-commercial..

  Represents the name ofthe course instructor

Modify class GradeBook. Include a second String instance variable that represents the name ofthe course's instructor. Provide a set method to change the instructor's name and a get methodto retrieve it.

  Distilled knowledge of an expert

What is the name of the computer program that contains the distilled knowledge of an expert?

  What extra constraints are required on the relation

What extra constraints are required on the relation advisor to ensure that the one-to-one cardinality constraint is enforced?

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