Question: Write a program that will ask the user to enter the dollar amount of a purchase. The program should then compute the state and county

 Write a program that will ask the user to enter the

Write a program that will ask the user to enter the dollar amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). A possible sample run: Enter the purchase amount: 98.5 Purchase amount: $ 98.5 State tax: $3.94 County tax: $ 1.97 Total tax: $ 5.91 Total cost: $ 104.41 You might want to use the following template as your starting point: # L07_Sales Taxes.py # A progrm to compute the state and county sales tax based on # user-entered purchase amount # Predefined constants STATE_RATE=0.04 # State tax rate COUNTY_RATE=0.02 # County tax rate #Prompt users for the dollar amount of the purchase. purchase =input("Enter the purchase amount: ") # TODO:convert to numeric format # Calculate the state, county sales tax, and total purchase cost # TODO: set values to state Tax, county Tax, totalTax, totalCost # Display the results, including taxes and total cost # TODO: print report lines Name your program as L07_Sales Taxes. Submission: The name of submitted file thus must be LO7_Sales Taxes.py

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!