
A/write an application that display a menu of three items in a restaurant as follows: (1) Cheeseburger 4.99 (2) Pepsi 2.00 (3) Chips 0.75 prompt the user to choose an item using the number (1,2or3) that corresponds to the item, or to enter 0 to quit the application.after the user makes 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 types0,display the cost of the single requested item.if the user types 1,2,or3add the cost of the second item to the first, and then display the menu a third time.if the user types0 to quit,display the total cost of the two items;otherwise,display the total for all three selections.
B/modify the application in the Exercise above (a) so that if the user makes a menu selection he or she has already made, ignore the selection-that is,do not add a second price for the same item to the total. the user is still allowed only three entries.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.