Web Development Exercise 10 4

Exercise 10-4 Create a Movies class that determines the cost of a ticket to a cinema, based on the moviegoerâs age. Assume that the cost of a full-price ticket is $10. Assign the age to a private data member. Use a public member function to determine the ticket price, based on the follow- ing schedule: Age Price Under 5 Free 5 to 17 Half price 18 to 55 Full price Over 55 $2 off