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 floatinputEnter the amount of a purchase:"
#Assign the value to State sales tax percentage
Statesalestaxpercentage
#Assign the value to county sales tax percentage
countysalestaxpercentage
#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
printThe amount of the purchase:",purchaseAmount
printThe state sales tax:",statesalestax
printThe county sales tax:",countysalestax
printThe total sales tax:",Totalsalestax
printThe total of the sale:",Totalofthesale
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
