Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Implement the menu choice options using the JAVA switch - case statement. For each option selected by the user, the program prompts the user

JAVA
Implement the menu choice options using the JAVA switch-case statement. For each option selected by the user, the program prompts the user to enter the quantity to be purchased and calculates the cost. The program repeatedly displays the menu until the user is done with the order for say, multiple items on the menu. The ordering terminates when the user enters the string done. On termination, the program displays the final total bill for all items ordered by the customer. Test your program by using a purchasing order of at least 3 different types of pizzas by a single customer then modify the order above to output transaction details into a text file with transaction number, name of item, quantity ordered, and total cost of each item.
1. Hamburger : $6.99
2. Hotdog : $2.99
3. Nachos : $2.99
4. Water : $1.99

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions