subject

g A movie theater patron can purchase a discounted ticket for "G" rated movies if they are children (12 or under) or seniors (65 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 (G, PG, etc). Be sure they only enter a positive number for age and G, PG or R for rating. Output error if numbers are negative or zero or rating is in error. Write the selection statements to output "Discount applies" when the 2 conditions are both true and "No Discount" if they are not both true.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:50, kmart4062
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, lopez7512
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, ryleerose255
Idon’t understand the double8 coding problem. it is java
Answers: 1
image
Computers and Technology, 23.06.2019 16:10, alexis9658
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
You know the right answer?
g A movie theater patron can purchase a discounted ticket for "G" rated movies if they are children...

Questions in other subjects:

Konu
Mathematics, 06.05.2020 04:44