Write a program that computes the total sales tax on a $52 purchase. Assume the state
sales tax is 4 percent and the county sales tax is 2 percent. Display the purchase price, state
tax, county tax, and total tax amounts on the screen

Respuesta :

//python 3.5//
state = . 04
county =. 02
total_tax = state + county

def total():
cost = eval(input('what is the the total cost? '))
final = cost + (cost * total_tax)
print('The purchase price is: ', cost )
print('The state tax is: ', state )
print('The county tax is: ', county )
print('The total tax is: ', total_tax )
print('The final price is: ', final )

total()