Discover new perspectives and gain insights with IDNLearn.com's diverse answers. Discover the information you need from our experienced professionals who provide accurate and 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 :
Thank you for using this platform to share and learn. Keep asking and answering. We appreciate every contribution you make. Thanks for visiting IDNLearn.com. We’re dedicated to providing clear answers, so visit us again for more helpful information.