Question: Hello, I am having trouble getting my files to work together for this problem. Here is the question and thank you for taking the time

Hello, I am having trouble getting my files to work together for this problem. Here is the question and thank you for taking the time to answer it :)

(1) Write an application that displays a menu of three items for the Jivin Java Coffee Shop as follows:

American 1.99

Expresso 2.50

Latte 2.15

Prompt the user to choose an item using the number (1, 2, or 3) 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 total 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 second item 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.

Save the file as Coffee.java.

(2)

Need a CoffeeTest.java Class that has the main method and an object to use the Coffee class.

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!