Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the Flowchart for the following programming problem and the pseudocode below. A restaurant wants you to write a program that will calculate the cost

Write the Flowchart for the following programming problem and the pseudocode below.

A restaurant wants you to 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

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions