Question: In this assignment you are to write a Python program to define a class to model the characteristics of a university student. The class is

 In this assignment you are to write a Python program to
define a class to model the characteristics of a university student. The

In this assignment you are 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: (a) 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 parameter and therefore must be listed first in order. The rest are keyword parameters. def init (self, name, major = 'IST, enrolled =yy, credits =0, qpoints =0 ): The code that creates a student object looks similar to this: s1= Student('Fillmore, Sonia ', major = 'Math', enrolled = ' y ', credits =90, qpoints =315 ) Code that prints a student object that implicitly uses the _ str_method looks similar to this, with the output immediately following: print( (sl=,51) sl = Sonia Fillmore, G00005, senior, Math, active: y, credits = 90, gpa = 3.5 For your submitted code, in addition to the class definition, a test seript is provided as a separate ".py" file with the assignment. Copy and paste it into your submitted code to nun after your class definition. The code creates Student objects, prints those objects, prints additional information on them using dot-notation access to attributes, and executes methods to calculate other information about students. Please include this code in your submitted '.py' file. Be aware that the script does not test 100% of all possible combinations of actions. Your class might run correctly with the script yet not be free of defects. What and where to submit: 1. Submit by uploading a single file with the Python code to Blackboard 2. Include a screen shot of your program's execution run with the provided testscript 3. Name the submitted file: IT209_A2.py Using the same name for everyone's filed makes it easier for the GTA to execute them. 4. Input a short set of comments as the first lines that identify the program, its purpose, and its author. How the assignment will be assessed The Python code will be visually inspected and executed. The GTA will run it with the test seript plus additional tests they choose. The GTA will assess each of the following and assign a point value for each

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!