Purchase Solution

Java FastFood Applications

Not what you're looking for?

Ask Custom Question

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

Purchase this Solution

Solution Summary

Java FastFood Applications are examined.

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C# variables and classes

This quiz contains questions about C# classes and variables.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

C++ Operators

This quiz tests a student's knowledge about C++ operators.