Write a program named Admission for a college's admissions office. The user enters a numeric high school grade point average (for example, 3.2) and an admission test score.

Display the message "Accept" if the student meets either of the following requirements:
1. A grade point average of 3.0 or higher, and an admission test score of at least 60
2. A grade point average of less than 3.0, and an admission test score of at least 80

If the student does not meet either of the qualification criteria, display "Reject."

Answer :

Below is the code for the program named "Admission" for a college's admissions office.

Python

def admission(gpa, test_score):

if gpa >= 3.0 and test_score >= 60:

result = "Accept"

elif gpa < 3.0 and test_score >= 80:

result = "Accept"

else:

result = "Reject"

return result

gpa = float(input("Enter your GPA: "))

test_score = int(input("Enter your admission test score: "))

admission_status = admission(gpa, test_score)

print("Admission Status:", admission_status)

So, the above code first defines a function admission() that takes the student's GPA and admission test score as input and returns their admission status.

Also, It then prompts the user to enter their GPA and admission test score, stores the values in variables, and calls the admission() function to determine the admission status. then, it prints the admission status message.