Movie ticket price problem
the do's: The local movie theater in town has a ticket price of $12.00 but if you are a senior (55 and older), under 10 you get the discounted price of $7.00. In addition, if a customer is seeing a movie between 3pm and 5pm they can also get the discounted price.
Determine which of the two prices the customer is eligible for.
given Time of Movie (Assume whole numbers here)
Age of the customer
Result To Print Out:
“The ticket price is X”
12.00 for the ticket variable
12.00 for the ticket variable
variable equal to 7
variable equal to 7
Time of Movie prompt
prompt for customers age
prompt for customers age
if time of movie is greater than or equal to 3 and time of movie is less than 5 OR age greater than or equal to 55 OR age less than or equal to 10
print to the console the cheap ticket price
Then with the else condition it will display the full rate ticket if they do not meet : f time of movie is greater than or equal to 3 and time of movie is less than 5 OR age greater than or equal to 55 OR age less than or equal to 10
Then with the else condition it will display the full rate ticket if they do not meet : f time of movie is greater than or equal to 3 and time of movie is less than 5 OR age greater than or equal to 55 OR age less than or equal to 10