Write down an application that displays a menu

Assignment Help Computer Engineering
Reference no: EM1329624

Write an application that displays a menu of three items in a restaurant as follows:

(1) Cheeseburger 4.99
(2) Pepsie 2.00
(3) Chips 0.75

Prompt the user to choose an item using the number (1, 2, or 3) that corresponds to the itme, or to enter 0 to quit the application. After the use rmakes the first selection, if the choice is 0, display a bill of $0. Otherwise, display the menu again. The user should respond to this prompt with another item number to order or 0 to quit. If the user types 0, display the cost of the single requested item. If the user types 1, 2 or 3 add the cost of the seocnt itme to the first, and then display the menu a third time. If the user types 0 to quit, display the total cost of the two items; otherwise, display the total for all three selections. Savce as FastFood.java

Modify the application in Ã?xercise 9a so that if the user makes a menu selection he or she has already made, ignore the selection - this is, do not add a second price for the same item to the total. The user is still allowed only three entries. Save as FastFood2.java

Reference no: EM1329624

Questions Cloud

Create an application for a furniture company : Write down an application for a furniture company; the program determinds the price of a table, Ask the user to choose 1 of pine, 2 of oak, or 3 of mahogany.
Illustrate what would be a monetary policy prescription : Illustrate what would be a monetary policy prescription to reduce or eliminate deflation.
Importance of time value of money concepts : Describe and discuss the significance of the following time value of money concepts including compounding (future value), discounting (present value) and annuities.
Explain designing a web page for the people : Explain Designing a Web Page for the People with Disabilities and visit the Internet and research on the legal issues those Web sites face that do not make provisions for the people with disabilities
Write down an application that displays a menu : Write down an application that displays a menu.
Leadership made responsible for any mistakes : Do you believe that if mistakes are made than leadership should be held ultimately responsible?
What part does planning play in formulating a report : What part does planning play in formulating a report? Is there any truth to the old saying, "if you fail to plan, you plan to fail?
Pvs of cash flow : To find out the present value of uneven series of cash flows, you may find out the PVs of the individual cash flows and then sum them. Annuity procedures can never be of use, even if some of the cash flows constitute an annuity
Assume worker productivity increased at the rate : Assume worker productivity increased at the rate what rate of increase in RGDP would be sustainable without increasing inflation pressures.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Lan based attacks

Discuss or describe one or more LAN based attacks (also known as layer 2 attacks or lower layer attacks) or share any additional thoughts you may have on the LAN based attacks.

  Reconnaissance tools

Enlist some of the popular reconnaissance tools, comparing three of the reconnaissance tools describing the advantages.

  Consider database security from a variety of perspectives

Share experiences have you had in terms of user security in past jobs or as a student? Do you feel the user security was effective in those situations? What will you have done differently in light of what you've learned about data security.

  Find the budget areas and the resulting balance

You are to make a budgeting report for a local company using a C++ program. There are two input files. The first input file lists the individual areas a budget has been defined for. Two of these are two checking accounts where the budget is the am..

  Explain the characteristics of a high performance team

Listing and define six major SDLC phases and the products of each. Indicate the CASE tools that would be used to support each phase.

  Explain the concept of programmability

how this benefits the purchaser of a console gaming system, such as the XBox.

  Advantages of technologies

List some of the advantages of some of current technologies explained in our reading this week involving VoIP, Virtual Private Networks, Unified Communications, Wi-Fi and wireless technologies such as RFID.

  Build a word document listing the software

The scenario is that you do volunteer work for the small, self-funded community support group. With very little money available, the group has been unable to computerize its operations.

  What type of procedures might a company put into place

What are some common steps and what type of procedures might a company put into place.

  Changing the web-based email system

Explain an example of an email message which you could transmit to the user of this Web-based email system and that could enable you to read all of that users email.

  Sdlcs and other sites explaining some of the tools

Visit web sites for the few leading information systems consulting the firms. Try to determine the information regarding the approach they utilize in order to develop systems. Specify whether SDLCs are described there? Also state do their sites ex..

  Establish separation of duties via role assignment

Setting security for each employee based on the specific role provides the tightest and most personalized security. The trade-off is increased amount of administration effort when setting up the specific roles to use and the access permitted for ea..

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