Create a program named admission that takes as Input the student name, GPA and the admission Test Score, the application should display if the student got accepted or rejected. The program should use a function named AcceptOrReject( gpa, testScore) to control the program. Acceptance is based on the following criteria: The student can get accepted in the following two cases : 1- if the GPA is less than 3.0, the test score has to be more than 80 to get accepted 2-if the GPA is more or equal to 3.0 then the test score has to be more than 60 to get accepted Otherwise, the student will get Rejected.
use python
sname = input("Enter Student name :")
gpa = float(input("Enter Student GPA :"))
testScore = float(input("Enter Student test score :"))
def AcceptOrReject(gpa,testScore):
if(gpa < 3.0 and testScore >80):
print("Student will be accepted")
elif(gpa >= 3.0 and testScore >60):
print("Student will be accepted")
else:
print("Student will be Rejected")
AcceptOrReject(gpa, testScore)
output:
Get Answers For Free
Most questions answered within 1 hours.