Question: Design an application that allows a user to choose an item from a menu by using the number 1, 2 or 3 that corresponds with

 Design an application that allows a user to choose an item

Design an application that allows a user to choose an item from a menu by using the number 1, 2 or 3 that corresponds with the item. Ifthe user wants to exit the application a 0 has to be entered Item 1 Chicken Mayo sandwich 2. Vienna and chips 3. Tuna tramezini Price R32.95 R29.95 R30.95 esc Prompt the user to choose an item from the menu using number 1, 2 or 3 that corresponds to the item he wants to order; else the user enters O to quit. If the user chooses 1, 2 or 3, show the inputS box again and if the user then chooses 0, show the cost of the item chosen. If the user chooses two (2) items from the menu before entering a 0, add the prices of the two (2) items and show it to the user. If the user chooses three (3) items before entering 0, add the three (3) items and show the cost to the user Input Chicken May Sandwich 32.95 fn (2) Vienna and Chips 29.95 (3) Tuna Tramezini 30.95 Make selection. Press 0 to quit OK Cancel Please note menu selection appears on the Input Bax. Menus Items do not need to be created Showing amount if the user chose item 1 and then pressed 0 to exit: Message Your total order comes to R32.95 OK Make use of a method to get the input from the user and pass the choice of the user to another method to determine the price. Save the application as Menu.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!