Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you are asked to write a Python program to define a class to model some characteristics ofa umversity Department Specifically, de class

image text in transcribed
image text in transcribed
In this assignment you are asked to write a Python program to define a class to model some characteristics ofa umversity Department Specifically, de class will track students equesting to major un that particular department. Students will be represenied by student objects created using the Stodent class developed in AZ When an aftempt is made to add the student to a depaertment's major (peogram), the Deparment class will examine the Student objoct data and decide whether to add them to the majior If not, the class roturns a response indicating rjection with a short reason why. The Department class should have, at minimum, the following methods (you may add others) sets inisial attribut the others are keyword with default values Displays a rcadable version of the Department Non Student data as a Student Te(added roster of majors. Uses isQualified internalobject Faselmot mcthod to reture whether qualified isQualifiodReturns whether the student is qualifiod for StudentT(qualifiod) or this majo printRoster Prints a list of Soudents listed as majoring in None List of stadents majoning Department code- 4chat minGPA num studenes Incoming students a must be geater than oroqual to this Total number of students listod as majors for the Dpartmont s of those The following table shows the alowed values for cach of the three Department objocts: Initial value CHHS CHHS College ARTS capacity IS 10 init by minGPA Set up inin float None - cak List Empty list current valuccunt valuc ument valu List of studen List of studentList ofstudent Below is the functionality of the roquired methodb All Departments ENGR-only ARTS-oaly CHRSonly Constructer initial attribute values dcode 1, univ-students-o (value shared | -ENGR code- dname Art d name 2. capacity and minGPA set up Collegs of Engineering and capacity 5 ArchitectureHealth and capacity S Human Services 3, num students-0 4. roster 5, avgGPA not defined until capacity-10 a readable version of the Department object-code, name, addStudemt Adds qualified students to the In this assignment you are asked to write a Python program to define a class to model some characteristics ofa umversity Department Specifically, de class will track students equesting to major un that particular department. Students will be represenied by student objects created using the Stodent class developed in AZ When an aftempt is made to add the student to a depaertment's major (peogram), the Deparment class will examine the Student objoct data and decide whether to add them to the majior If not, the class roturns a response indicating rjection with a short reason why. The Department class should have, at minimum, the following methods (you may add others) sets inisial attribut the others are keyword with default values Displays a rcadable version of the Department Non Student data as a Student Te(added roster of majors. Uses isQualified internalobject Faselmot mcthod to reture whether qualified isQualifiodReturns whether the student is qualifiod for StudentT(qualifiod) or this majo printRoster Prints a list of Soudents listed as majoring in None List of stadents majoning Department code- 4chat minGPA num studenes Incoming students a must be geater than oroqual to this Total number of students listod as majors for the Dpartmont s of those The following table shows the alowed values for cach of the three Department objocts: Initial value CHHS CHHS College ARTS capacity IS 10 init by minGPA Set up inin float None - cak List Empty list current valuccunt valuc ument valu List of studen List of studentList ofstudent Below is the functionality of the roquired methodb All Departments ENGR-only ARTS-oaly CHRSonly Constructer initial attribute values dcode 1, univ-students-o (value shared | -ENGR code- dname Art d name 2. capacity and minGPA set up Collegs of Engineering and capacity 5 ArchitectureHealth and capacity S Human Services 3, num students-0 4. roster 5, avgGPA not defined until capacity-10 a readable version of the Department object-code, name, addStudemt Adds qualified students to the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions