Question: Do this in python. Calculates the total including sales tax (8.875%) of a shopping trip. Create a total variable and a tax variable. Total the
Do this in python. Calculates the total including sales tax (8.875%) of a shopping trip. Create a total variable and a tax variable. Total the items calculated with tax. Be sure to test if the price is above zero. Continues to prompt the user to enter prices until they are done. Hint: enter a while loop until the user types done at the prompt. Hint: Since we don't know how many times the loop will execute, it makes the most sense to use a 'while' loop. You will need to prompt the user in 2 different places. Once outside of the loop and again as the last line inside the while loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
