Answer:
CONCEPT:Python code to get the status of Student based on thier Earnings CODE: def main(): print('Student Classification Software.') try: userCredit =int( input('\nPlease enter student credits: ')) if userCredit >90: print('\nSenior Status') elif 60 <userCredit <90 : print('\nJunior Status') elif 30 < userCredit < 60: print('\nSophomore Status') else: # this mean userCredit >= 26...
Explanation:
A certain university classifies students according to credits earned. A student with less than 30 hours is a Freshman. At least 30 credits are required to be a Sophomore, 60 to be a Junior, and 90 to be a Senior. Write a program that calculates class standing from the number of credits earned with the following specifications:
Write a function named determineStatus() that prompts the user for how many credits they have earned and uses a decision structure (if, else, etc.) to determine the class standing of the student. The function should display the standing to the student (85 points).
If the user tries to enter a negative value, the program should alert the user that negative numbers are not allowed (5 points).
Write a main() function that calls the determineStatus() function (5 points).