Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python program that will Work as a point of sale system at a rodeo snack bar. The snack bar sells only three items:

Write a python program that will Work as a point of sale system at a rodeo snack bar. The snack bar sells only three items: sandwiches for $3.00, chips for $1.50 and drinks for $2.00. All items are subject to an 8.25% sales tax. The program will repeatedly display the following menu until the shift is closed - E is entered. The program should keep a running total of the amount of the sale and the end of day total sales will be displayed when E is entered. Only one item can be ordered at a time The following menu will be displayed at all times: MENU S = sandwiches - $3.00 C = chips - $1.50 D = drink - $2.00 X = cancel the sale and start over T = total the sale. E = close the shift If the sale is cancelled - X is entered, clear the running total and display the menu again. When the sale is totaled - T is entered, calculate the sales tax due and OUTPUT the number of all the items ordered (not the totals of each type of item), the total before the tax, the tax and the final total including the tax. Use a sentinel loop. Use functions with value and reference parameters where appropriate. Your numeric output must be formatted to show two places after the decimal even if the value after the decimal is 0. An output of 10 should display as 10.00.

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 Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago