Write a program that will calculate the cost of purchasing a meal….

$25.00

Category: Tags: , , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (2 votes)

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 follows:

Your menu items only include the following food with 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