Question: Write a program in Java Language using selection statement and repetition. Write an object-oriented program by designing and implementing the appropriate classes to produce an
Write a program in Java Language using selection statement and repetition.

Write an object-oriented program by designing and implementing the appropriate classes to produce an output as follows:

MyJava Coffee Outlet is now venturing into the fast-food busines that provides a computer screen and mouse for its drive-through customers. You are hired as a freelance computer consultant. The following table lists the items available for each entry and their prices.
MyJava Coffee Outlet is now venturing into the fast-food busines that provides a computer screen and mouse for its drive-through customers. You are hired as a freelance computer consultant. Make corrections to the program that lists items for three menu categories: entree, side dish, and drink. The codes to be corrected have been highlighted in yellow color. The following table lists the items available for each entry and their prices. Entree Side Dish Drink Tofu Burger $3.49 Rice Cracker $0.79 Cafe Mocha $1.99 Cajun Chicken $4.59 No-Salt Fries $0.69 Cafe Latte $1.99 Buffalo Wings $3.99 Zucchini $1.09 Espresso $2.49 Rainbow Fillet $2.99 | Brown Rice $0.59 | Oolong Tea $0.99 MyJava Coffee Drive-Thru Please select the entree, side dish, and drink you want from the list. Enjoy and come again! Entree 1) Tofu Burger $3.49 2) Cajun Chicken $4.59 3) Buffalo Wings $3.99 4) Rainbow Fillet $2.99 5) None Enter the item number: 1 Quantity: 3 Side Dish 1) Rice Cracker $0.79 2) No-Salt Fries $0.69 3) Zucchini $1.09 4) Brown Rice $0.59 5) None Enter the item number: 5 Drink 1) Cafe Mocha 2) Cafe Latte 3) Espresso 4) Oolong Tea 5) None $1.99 $1.99 $2.49 $0.99 Enter the item number for which item you want: 2 Quantity: 4 Your Order: Entree: Side dish: Drink: 3 Tofu Burger $10.47 None 4 Cafe Latte $7.96 Total bill: $ 63.25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
