Question: In this assignment you are asked to write a Python program to define a class to model the characteristics of a university student. The class
In this assignment you are asked to write a Python program to define a class to model the characteristics of a university student. The class is part of a slightly larger program that includes code to use the class to create some student objects and test its methods. The name of the class is "Student' and includes the following methods and attributes: Methed Na Ou Constructor sets initial attibute values gnum and name are positional attributes, below the others are keyword with default values Displays a readable version of the StudentNone object Calculates and returns the student's gpa. gpa- gpoints /credits Returns whether the student is currently enrolled. "y'. True," n' False Computes class status based on # of credits | None completed (90+ "Senior, 60+ Junior nit See None Student data as a table gpa (float) None isEnrolled None True or False status String indicating class status same Sudent Compares "self (this") student's g num Student True or False and name with the input Student object's-object returns True if match, otherwise returns False Attribute Type Counts number of student objects ereated for entire class 6 digit Student ID: "G" +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
