Question: #Get the purchase amount purchaseAmount = float ( input ( Enter the amount of a purchase: ) ) #Assign the value to State sales

#Get the purchase amount
purchaseAmount = float(input("Enter the amount of a purchase:"))
#Assign the value to State sales tax percentage
Statesalestaxpercentage =0.05
#Assign the value to county sales tax percentage
countysalestaxpercentage =0.025
#Calculate the state sales tax
statesalestax = purchaseAmount * Statesalestaxpercentage
#Calculate the county sales tax
countysalestax = purchaseAmount * countysalestaxpercentage
#Calculate the total sales tax
Totalsalestax = statesalestax + countysalestax
#Calculate the total of the sale
Totalofthesale = purchaseAmount + Totalsalestax
#Display the required output
print("The amount of the purchase:",purchaseAmount)
print("The state sales tax:",statesalestax)
print("The county sales tax:",countysalestax)
print("The total sales tax:",Totalsalestax)
print("The total of the sale:",Totalofthesale)

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!