Question: 1 . A program that will ask a user to enter his / her age and then display the output of the ticket price.

"1. A program that will ask a user to enter his/her age and then display the output of
the ticket price. User who is 40 years old and older will be charge RM 5.00. If the
age of user is 18 years old and older the ticket is RM 15.00. Otherwise, if the user
is below 18 years old, the ticket is RM 7.
2. A program that has two variables to hold two test scores. The program should ask
the user to enter two test scores and then assign the values entered to the
variables. The program should display the average of the test scores and the le TJ12 tter
grade. The grade P will be print out if test score average is between 50 and 100.
If the test score average is between 0 and 29, the grade F will be displayed. Other
than these values, the program will display Invalid Value."

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 Programming Questions!