Design a program that will ask the user to enter the amount of a purchase. The program
should then compute the state and provincial sales tax. Assume the state sales tax is 5
percent and the provincial sales tax is 2 percent. The program should display the
amount of the purchase, the state sales tax, the provincial sales tax, the total sales tax,
and the total of the sale (which is the sum of the amount of purchase plus the total sales
tax)

Respuesta :

The program is a sequential program, and they do not require loops and conditions

The program design in Python

The complete program written in Python is as follows:

purchaseAmount = float(input("Amount: "))

stateSalesTax = 0.05 * purchaseAmount

provincialSalesTax = 0.02 * purchaseAmount

print("Amount:",purchaseAmount)

print("State sales tax:",stateSalesTax)

print("Provincial sales tax:",provincialSalesTax)

print("Total sales tax:",(stateSalesTax + provincialSalesTax))

print("Total sales:",(purchaseAmount + stateSalesTax + provincialSalesTax))

Read more about Python programs at:

https://brainly.com/question/26497128

#SPJ1

ACCESS MORE