Get the answers you've been looking for with the help of IDNLearn.com's expert community. Join our interactive community and get comprehensive, reliable answers to all your questions.
Write a program to calculate ticket prices based on age and movie time of (M)atinee or (E)vening.
Matinee $12, Evening $16; anyone 18 or under and anyone 65 or older gets a $4 discount.
Calculate and print the ticket price, discount amount (if applicable), and adjusted ticket price.
Example Run:
Ticket Price Calculator
Age: 17
Movie Time (M/E): M
Ticket Price: $12
Discount: $4
Adjusted Price: $8
Enjoy your movie!
Another Example:
Ticket Price Calculator
Age: 35
Movie Time (M/E): E
Ticket Price: $16
Enjoy your movie!
Sagot :
We appreciate your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. Your search for solutions ends at IDNLearn.com. Thank you for visiting, and we look forward to helping you again.