Answer:
# prompt the user to enter number of ticket for class A
classAticket = int(input("Please enter number of ticket for class A"))
# prompt the user to enter number of ticket for class B
classBticket = int(input("Please enter number of ticket for class B"))
# prompt the user to enter number of ticket for class C
classCticket = int(input("Please enter number of ticket for class C"))
# the total amount for ticket is calculated
totalAmount = (classAticket * 20) + (classBticket * 15) + (classCticket * 10)
# the total amount is printed
print("The total amount for ticket is $", totalAmount, sep="")
Step-by-step explanation:
The program is written in Python and well commented.