Question: Write a program that takes in a string that holds the values day or night, and in integer that holds a person's age and outputs

Write a program that takes in a string that holds the values "day" or "night", and in integer that holds a person's age and outputs a movie ticket price. Movie prices are free for everyone under the age of 4. Daytime prices are $8 for everyone age 4 or higher . Nighttime prices are $12 for ages 4-16, $15 for ages 17-54, and $13 for ages 55 and above. Example: if the input is night 50 the output is $15. C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!