Web Development Exercise

User Generated

OyhrBprna

Programming

Description

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

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

At...


Anonymous
Nice! Really impressed with the quality.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags