Question: Program 1: Price Calculator.py Write a program for your store that uses a while loop to accumulate item prices multiplied by number of items

Program 1: Price Calculator.py Write a program for your store that uses a while loop to accumulate item prices multiplied by number of items that will be input by the user. The program will then calculate the tax amount, and then display the subtotal, tax amount, and total due. Program requirements: The program must display a unique welcome message that includes your store's name. The program must use accumulation in a while loop to calculate the subtotal. The loop will repeat until 0 (zero) is entered for item price. In the loop body, prompt for price and number of items at that price. Multiple the price and number of items, then add the result to the subtotal. Tax must be calculated using a tax rate of 8.25%. To determine tax amount, multiply the tax rate by the subtotal. Add the tax amount to the subtotal to determine the total due. Displayed values that represent dollar amounts must be formatted as currency, including a dollar sign and 2 decimal places Sample run and output below: Welcome to Dollar Family! Enter item price: 10.15 How many of item: 1 Enter item price: 0 Subtotal: $10.15 Tax: $0.84 Total $10.99 >>> | Welcome to Dollar Family! Enter item price: 12.99 How many of item: 2 Enter item price: 7.00 How many of item: 1 Enter item price: 0 Subtotal: $32.98 Tax: $2.72 Total $35.70
Step by Step Solution
3.40 Rating (147 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
