Question: 4.13 LAB: (Branching): Admission Write a program that reads input about a person and prints whether he/she are admitted to No name U. To be
4.13 LAB: (Branching): Admission
Write a program that reads input about a person and prints whether he/she are admitted to No name U. To be admitted, one must have a score of at least 23 on the ACT as well as a high school GPA of at least 1.75.
(1) Prompt the user for their score on the ACT and for their high school GPA (Submit for 2 points)
What was your score on the ACT? # this is the input prompt 25 # this is user's input; you should not print it from your program What was your high school GPA? # this is the input prompt 2.35 # this is user's input; you should not print it from your program
(2) Check to see if the student should be admitted or not and print an appropriate message either way. (Submit for 3 points, so 5 points total)
For example:
What was your score on the ACT? # this is the input prompt 23 # this is user's input; you should not print it from your program What was your high school GPA? # this is the input prompt 2.35 # this is user's input; you should not print it from your program Congratulations. You can attend Noname U.
or
What was your score on the ACT? # this is the input prompt 22 # this is user's input; you should not print it from your program What was your high school GPA? # this is the input prompt 2.35 # this is user's input; you should not print it from your program Sorry. You don't satisfy admission standards.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
