The required program for applicant selection written in python 3 is :
age = int(input())
grade12_avg = int(input())
ps = int(input())
cs = int(input())
def status(age, grade12_avg, ps, cs):
msg = 'sorry you are not admitted'
if (age >=16) and (grade_avg >=60):
if (ps>=65) or (cs>=50):
message = 'congratulations'
print(message)
else :
print(message)
else:
print(message)
Run through of the codeblock :
age = int(input())
grade12_avg = int(input())
ps = int(input())
cs = int(input())
# input values provided by users
.
def status(age, grade12_avg, ps, cs):
#Define a function named status
msg = 'sorry you are not admitted'
# display message for recepients
if (age >=16) and (grade_avg >=60):
#First condition ; the and keyword means both must be True
if (ps>=65) or (cs>=50):
2nd condition, or statement means only one or both can be true
message = 'congratulations'
#content of message if both conditions are met
print(message)
#Display newly defined content of message
else :
print(message)
#Display initial content of message
else:
print(message)
#Display initial content of message.
Learn more :brainly.com/question/24672775