Question: Write a separate complete python script to print a receipt (for a Daily Needs Store) based on a fixed number of input quantities for 8
Write a separate complete python script to print a receipt (for a Daily Needs Store) based on a fixed number of input quantities for 8 food items and 2 other items as shown in figure 1a below. User enters ONLY the quantity. Price is fixed for each item as shown in each echo statement. Then the script must print the receipt for the items purchased as shown in figure 1b. Note: Non-food items are taxable at 8.25% (Batteries and Vitamins)
Affordable Daily Needs
This program will prompt for 10 items.
Enter quantity of each item purchased How many loaves of Bread ($1.50 each): 2
How many gallons of Milk ($2.25 each): 3
How many bags of Chips ($3.60 each): 2
How many pounds of Potatoes ($0.99/lb): 4.5
How many pounds of Bananas ($0.36/lb): 2.5
How many pounds of Beef ($3.89/lb): 3.8
How many pounds of Tomatoes ($0.89/lb): 1.5
How many pounds of Apples ($0.69/lb): 2.4
How many 2-pack AA batteries ($2.29 each): 3
How many Vitamin bottles ($4.59 each): 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
