Question: can someone help me with this ? IT-209 - Assignment 3 (A3) - University Department Class Definition Assignment Given: 02/23/2023 Assignment Due: 03/07/2023, 11:59 pm



IT-209 - Assignment 3 (A3) - University Department Class Definition Assignment Given: 02/23/2023 Assignment Due: 03/07/2023, 11:59 pm In this assignment you are to write a Python program to define a class to model some characteristics of a university Department. Specifically, the Department class will contain a list of Student objects requesting to major in that particular department. Students will be represented by student objects created using the Student class developed in A2, but with a 'setMajor0' method added that allows the Student object's major to be reset. When an attempt is made to add the student to a department's major (program), the Department class will examine the Student object data and decide whether to add them to the major. If not, the class returns a response indicating rejection with a short reason why. The Department class should have, at minimum, the following methods (you may add others): For this assignment attributes do not have to be protected using the double-underscore prefix. Below is the functionality of the required methods. Note that the " init 'method is the same for all Department objects, but the individual instance attributes are given by the code that instantiates (creates) the object. Test Code: To test your classes and methods you must copy and paste the code in the provided testscript.py (included with the assignment in Blackboard) after your class definitions. To successfully run with the script your code must comply with the method and attribute names and specifications in this document. Additional tests may be run by the GTA during evaluation for a grade, so merely complying with the test script doesn't ensure a 100% score. What and where to submit: 1. Submit by uploading a single file with the Python code to Blackboard 2. Name the submitted file: IT209 firstname lastname A3.py. 3. 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 via command line ("python .py"), under IDLE, or using another appropriate IDE. The GTA will run it with one or the test script you include with your code and possibly other sample student data to ensure the class is defined, the attributes initialized, and the methods work correctly. The GTA will assess each of the following and assign a point value for each. Note: plagiarized submissions will receive a grade of zero, in which case no resubmissions will be accepted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
