Reference no: EM132212363
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.
• All output must have the appropriate labels.