Question: Write a program to do the following: A movie theater patron can purchase a discounted ticket for G rated movies if they are
Write a program to do the following:
A movie theater patron can purchase a discounted ticket for rated movies if they are children or under or seniors and older
Input the two pieces of data. Assume that the variable Age holds the age of the patron and the variable Rating holds the movie rating PG etc Be sure they only enter a positive number for age and PG or for rating.
Write the selection statements to output "Discount applies" when the conditions are both true and No Discount" if they are not both true.
Test your program times:
Age and rated movie
Age and rated movie
Age and rated movie
Age and rated movie
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
