Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

LO1 Understand risk management and identify its components.

Answered: 1 week ago