Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Write a program that will calculate the cost of purchasing a meal. This program will include decisions and loops. Details of the program are as...

accompanied price:

Yum Yum Burger = .99

Grease Yum Fries = .79

Soda Yum = 1.09

Allow the user of the program to purchase any quantity of these items on one order.

Allow the user of the program to purchase one or more types of these items on one order.

After the order is placed, calculate total and add a 6% sales tax.

Print to the screen a receipt showing the total purchase price.

Your sample output might look as follows:

Enter 1 for Yum Yum Burger

Enter 2 for Grease Yum Fries

Enter 3 for Soda Yum

Enter now ->1

Enter the number of burgers you want 3

Do you want to end your order? (Enter yes or no): no

Enter 1 for Yum Yum Burger

Enter 2 for Grease Yum Fries

Enter 3 for Soda Yum

Enter now ->3

Enter the number of sodas you want 2

Do you want to end your order? (Enter yes or no): no

Enter 1 for Yum Yum Burger

Enter 2 for Grease Yum Fries

Enter 3 for Soda Yum

Enter now ->1

Enter the number of burgers you want 1

Do you want to end your order? (Enter yes or no): no

Enter 1 for Yum Yum Burger

Enter 2 for Grease Yum Fries

Enter 3 for Soda Yum

Enter now ->2

Enter the number of fries you want 2

Do you want to end your order? (Enter yes or no): yes

The total price is $ 8.1832

Do you want to end program? (Enter no to process a new order): no

Enter 1 for Yum Yum Burger

Enter 2 for Grease Yum Fries

Enter 3 for Soda Yum

Enter now ->2

Enter the number of fries you want 2

Do you want to end your order? (Enter yes or no): no

Enter 1 for Yum Yum Burger

Enter 2 for Grease Yum Fries

Enter 3 for Soda Yum

Enter now ->3

Enter the number of sodas you want 2

Do you want to end your order? (Enter yes or no): yes

The total price is $ 3.9856

Do you want to end program? (Enter no to process a new order): yes

Need help with the java code for this problem.

//Keejoon Park//Lab 5//Meal Purchase Programimport java.util.Scanner;public class mealPrice {staticstaticstaticstaticstaticstatic doubledoubledoubledoubledoubledouble totalBurger =...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question