Question: We Would like to implement a system that helps Student AfTairs Unit a ) The system offers a number of tasks such as: registering about

 We Would like to implement a system that helps Student AfTairs
Unit a ) The system offers a number of tasks such as:

We Would like to implement a system that helps Student AfTairs Unit a ) The system offers a number of tasks such as: registering about students and so on. The first step we would like to do is to define class Student. The UML. for class Student is name: string ID: int GPA: float level: int Student0 +Student(string n, int id, float gpa, int lev) + printInfo): void Attributes name: To represent the name of the student ID: To represent the ID of the student GPA To represent the GPA of the student (p). level To represent the eurrent level of the student course1): To represent the list of courses that are registered for the student. Constructors To initialize all five attributes. Functions add Course It adds the received course to the list of course for the student It returns true if the course added successfully and false otherwise (when the - isGraduateStudent: it returns trae if the student is a graduate student and numofCourses: It counts and returns the number of courses registered for list is full or the course is already registered). false otherwise. A student is graduate if she is in level 7 or in level 8 the student. - printinfo: It prints all student information including registered courees Setters + Getters: in our system we need to implement getID0 and getLevel ONLY. Do not waste your time implementing others! - Next step is to declare an array of type Student and size 100 to store all students in the university, we need to declare the array asa global After that we need to implement some functions for the system it will include the following functions: add Student: it adds the received student objeet to the students array. It then returns true if it adds successfully and false otherwise (when the array is full . findStudent: It receives a student id and then returns the index ofthe student numofGraduateStudents it counts and returns the number of graduate retrieve Studentinfo: it receives a student id and then print all information or the student is already added) whose id is the received id. It returns-1 if student is not found. students. You may use a function from class Student of the student whose id is the received id. Print an appropriate message if the udent is not found, Make use of the function findStudent. printAlllnfo: it prints information of all added students. You may use a We Would like to implement a system that helps Student AfTairs Unit a ) The system offers a number of tasks such as: registering about students and so on. The first step we would like to do is to define class Student. The UML. for class Student is name: string ID: int GPA: float level: int Student0 +Student(string n, int id, float gpa, int lev) + printInfo): void Attributes name: To represent the name of the student ID: To represent the ID of the student GPA To represent the GPA of the student (p). level To represent the eurrent level of the student course1): To represent the list of courses that are registered for the student. Constructors To initialize all five attributes. Functions add Course It adds the received course to the list of course for the student It returns true if the course added successfully and false otherwise (when the - isGraduateStudent: it returns trae if the student is a graduate student and numofCourses: It counts and returns the number of courses registered for list is full or the course is already registered). false otherwise. A student is graduate if she is in level 7 or in level 8 the student. - printinfo: It prints all student information including registered courees Setters + Getters: in our system we need to implement getID0 and getLevel ONLY. Do not waste your time implementing others! - Next step is to declare an array of type Student and size 100 to store all students in the university, we need to declare the array asa global After that we need to implement some functions for the system it will include the following functions: add Student: it adds the received student objeet to the students array. It then returns true if it adds successfully and false otherwise (when the array is full . findStudent: It receives a student id and then returns the index ofthe student numofGraduateStudents it counts and returns the number of graduate retrieve Studentinfo: it receives a student id and then print all information or the student is already added) whose id is the received id. It returns-1 if student is not found. students. You may use a function from class Student of the student whose id is the received id. Print an appropriate message if the udent is not found, Make use of the function findStudent. printAlllnfo: it prints information of all added students. You may use a

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!