2

I cannot figure out rounding to two decimals for the cost with a discount and without a discount.

print('You are welcome to the AMC Movie Theaters. There are three categories of ticket prices based on age:')
print('1. Children (ages 2-12) costs $10.69 each')
print('2.Adults (ages 13-59) costs $13.69 each')
print('3.Seniors (ages 60+) costs $12.69 each')
print()
print('At the moment, we offer the following discounts:')
print('1. 20% discount off Children ticket prices and')
print('2. 30% discount off the senior ticket prices.')
print()
child = int(input('Enter the number of tickets to purchase for a child (ages 2-12):'))
adult = int(input('Enter the number of tickets to purchase for an adult (ages 13-59):'))
senior = int(input('Enter the number of tickets to purchase for a senior (ages 60+):'))
print('Total ticket cost WITHOUT discount:',(10.69 * child)+(12.69 * senior) +(13.69 * adult))
print('Total ticket cost WITH discount:', (10.69 * child * .20)+(12.69 * senior * .30)+(13.69 * adult))

0 Answers0