Zee books in python, cannot figure it out. Please help write a program that reads input about a student and prints whether that student is ready to graduate. Rules about graduation are explained...

Zee books in python, cannot figure it out. Please help write a program that reads input about a student and prints whether that student is ready to graduate. Rules about graduation are explained below. (1) First, prompt the user to input the category of student (graduate, undergraduate, or non-degree). Any other input is incorrect - your program should print an error message and finish. (Submit for 3 points) Enter student category: G (graduate), U (undergraduate), or N (non-degree) U # this is user input Enter student category: G (graduate), U (undergraduate), or N (non-degree): X # this is user input Error: non-existing category (2) If the category of student was one of the three allowed, then more input needs to be read: for undergraduates: the number of units they've completed; for graduates: which degree they are seeking (MS or PhD), and the number of credits they've earned; for non-degree students: no further input. (Submit for 3 points, so 6 points total)  For example: Enter student category: G (graduate), U (undergraduate), or N (non-degree): U # this is user input Enter number of units completed: 10 # this is user input (3) Now, after gathering all the information that is needed, check and output a message if the student can or cannot graduate. Here are the rules to determine if a student is ready to graduate: Undergraduates need 15 or more units. Graduates need 33 or more credits if they are seeking an MS degree and 90 or more credits if they are seeking PhD. Non-degree students are never ready to graduate. (Submit for 10 points, so 15 points total) For example: Enter student category: G (graduate), U (undergraduate), or N (non-degree):

U # this is user input Enter number of units completed: 10 # this is user input Undergraduate student, you need more units to graduate. Or Enter student category: G (graduate), U (undergraduate), or N (non-degree): G # this is user input Enter degree (MS or PhD): PhD # this is user input Enter number of credits earned: 90 # this user input Graduate student, you are ready to graduate. Or Enter student category: G (graduate), U (undergraduate), or N (non-degree): N # this is user input Non-degree students cannot graduate.


May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here