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.

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" + + totalEnrollment at the time the student object was created-assigned by the class Suudent name g num e-"last name Art cfirst name "Hist IST "Math "Ph Is this a currently enrolled student? Number of Number of float to s to dat @The class definition contains a constructor whose signature line looks similar to the following line. The parameters (in parentheses) are the input data to the method. name is a positional parameters and therefore must be listed first in order. The rest are keyword parameters. def_ init (self, name, major "IST, enrolled-y,credits-0, gpoints -0) The code that creates a student object looks similar to this: s1- Student(Fillmore, Sonia,mjor Math', enrolled-y.credits-90, apoints-315)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!