Answer:
purchase_amount = float(input("Enter the amount of a purchase: "))
state_sales_tax = purchase_amount * 0.05
country_sales_tax = purchase_amount * 0.025
print("The amount of the purchase is " + str(purchase_amount))
print("The state sales tax is " + str(state_sales_tax))
print("The county sales tax is " + str(country_sales_tax))
print("The total sales tax is " + str(state_sales_tax + country_sales_tax))
print("The total of the sale is " + str(purchase_amount + state_sales_tax + country_sales_tax))
Explanation:
*The code is in Python.
Ask the user to enter purchase amount
Calculate the state sales tax, multiply purchase amount by 0.05
Calculate the county sales tax, multiply purchase amount by 0.025
Calculate the total sales tax, sum the state sales tax and county sales tax
Print the amount of the purchase, state sales tax, county sales tax, total sales tax and total of the sale