Question: sales _ tax.py: Write a program that asks the user to enter the price of a purchase order. Then, the program figures state sales tax

sales_tax.py: Write a program that asks the user to enter the price of a purchase order. Then, the program figures state sales tax at 5% and county sales tax at 2.5%. The output should include Purchase Order Price, State Tax, County Tax, and Grand Total.
Challenge: to avoid the appearance of math errors, it's best to use the round() function on the tax calculations round each to 2 decimal places.
When printing, use the .format() and/or f-string shortcut method to create a table as shown below. Test with sample data and other values to ensure it's a dynamic solution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!