Question
Write a simple shopping cart program in python that asks the user for a series of product prices. Compute sales tax (7%) on each price
Write a simple "shopping cart" program in python that asks the user for a series of product prices. Compute sales tax (7%) on each price and print out the new price to the user. Next, ask the user if they want to enter another price - if they do, repeat the process. If not, end the program. Sample: Enter an item price: 1.00 Tax on this item is 0.07 ; total price: 1.07 Enter another price? (yes or no): yes Enter an item price: 2.00 Tax on this item is 0.14 ; total price: 2.14 Enter another price? (yes or no): yes Enter an item price: 3.00 Tax on this item is 0.21 ; total price: 3.21 Enter another price? (yes or no): no
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started