Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in java programming you can ignore it and put the correct one SU Lab -W5 - Chap 11- Aggregation-Composition[2958] [Lecture seule] - Word Outils Image
in java programming
you can ignore it and put the correct one
SU Lab -W5 - Chap 11- Aggregation-Composition[2958] [Lecture seule] - Word Outils Image Fahad Alnjiman Fichier Accueil Insertion Conception Mise en page Rfrences Publipostage Rvision Affichage Aide Mise en forme Rechercher des outils adapts & Partager students Section (Some Properties) -id: int -nb Students: int +academic Year: String -nb Sections: int -MAX_SIZE: int +Section(academicy: String): int +getSectionld(); int +getNbStudents(): int +addStudent(Student inSt): boolean +getStudentindex: int): Student +getStudentinName: String): Student +getStudent (inld: String): Student +getStudentsByHours(incompletedHours): Student[] +getStudentAbove Gpa(inGPA: double): Student[] +getStudentBelowGpainGPA: double): Studenti +removeStudent(index: int): boolean * sections 1 students University {Some Properties) -Name: String -StudentCounter int addStrudent/secld: int, inSt: Student): boolean +getNbStudents():int +getNbSections(): int +main: void 1 Student {Some Properties) - id: Int -name: String -major: Program - completedHours: int -gpa: double +Student(inld:int): +Studentinld: int, inName: Strin +setName(inName: String): void +setMajor(inProg: Program): void +set Gpain Gpa: double): void +setCompletedHours(inHours: int): void +getName(): String +getMajor(): String +getGpa(): double +getCompletedHours(): int +addCompletedHours(inHours: int): int O Tasks: Page 1 sur 2 99 mots DE Anglais (tats-Unis) 108 % o Taper ici pour rechercher la C) FRA 21:00 19/02/2021 D Secon Some Properties Monts int academic Year: Shing bacio MAXESZER Section came Sg gutection in gebob contrado Index Stuart Sigrant Sudents String: con ADOMEGA double Student gelow: retur inn con University (hom Pro ering dort Somers dre con una SLER NONO MONIO ODINU th de lei nie intring tag Progaras per Com od One eGo Com . es Schags de een toime Rechercher des outils adapter Problem description: Consider the UML diagram of the following classes: Class Student and Class section students Section (Some Properties) -Id: Ini -nb Students: Int -academic Year: String -nb Sections in -MAX SIZE in Section(academicy: String): int getSection() int getNbStudents(); int .addStudent Student inSty boolean gotStudent index inty Student getStudentinName: String) Student gotStudentinid: String Student getStudentsByHousin CompletedHours) Student getStudentAbove GoinGPA double): Student getStudentBelowGp GPA double): Student remove Student index int boolean o section 1 Student (Some Properties) -id: Int name Sting Emaior Program completed Housin University [Some Properties! -Name String Student Counter add Student secldint, in St. Students: boolean ge Students():int gelNbSections in void students 1 Sudentendint: Student ind in InName: String setNamein Name String: void se Maori Prog Programy void setpainGpa double vold *Sl CompletedHours Hoursty vod getflame) String getMajor() String *getpac double getComplotourstin *addCompletedHournhout 1- Write class Student a. The student id is always given at the student creation 2- Write the dass Section a. The section Id is always computed using the static attribute nbSections. b. The method addStudent) will return false if the section is full (nbStudents == MAX_SIZE) 3. Write the class University a. The student Id is always computed using the static attribute studentCounter. b. main() details will be defined laterStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started