Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started