Question: In python Assume a customer is at a store purchasing exactly 5 items. The cashier inputs the items and their prices into the computer. Someone

In python

Assume a customer is at a store purchasing exactly 5 items. The cashier inputs the items and their prices into the computer. Someone has provided the cashier a Python program that does the following:

Asks cashier for name of each item (use short names)

Asks cashier for price of each item

Assume items are between $100 & $999.

Do number 4 5x so it prints them out for 5 different items and 5 prices Prints receipt header (see below for a sample receipt)

#4Prints item name and price as they are entered

Input item name, item price, then print them

Keeps a running subtotal, then prints it below the items

Calculates and prints sales tax amount based on a 7% tax rate

Prints a total that includes tax amount

Prints how much cash a person pays

Assume customer pays the exact or higher amount

Prints the amount of change (if any) to be returned to customer

What to Turn-In?

In ONE Word document, copy & paste on separate pages

Python code

The output of program (screen snip will suffice)

make the program look like this: SAMPLE RECEIPT

5 ITEMS PURCHASED ______________________________________

Item 1 $__.__

Item 2 $__.__

Item 3 $__.__

Item 4 $__.__

Item 5 $__.__

Subtotal $__.__

Tax - 7% $__.__

Total $__.__

Customer Paid $__.__

Change to customer, if any $__.__

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!