Page 1 of 1

Faculty Student cgpa : double - id : String - courses: Course[ ] - numberOfCourses: int + Student + Student(name : Strin

Posted: Wed Apr 27, 2022 5:05 pm
by answerhappygod
Faculty Student Cgpa Double Id String Courses Course Numberofcourses Int Student Student Name Strin 1
Faculty Student Cgpa Double Id String Courses Course Numberofcourses Int Student Student Name Strin 1 (126.99 KiB) Viewed 20 times
Faculty Student cgpa : double - id : String - courses: Course[ ] - numberOfCourses: int + Student + Student(name : String, age : int, address String, cgpa : double, id : String) + getCgpa(): double + setCgpa(cgpa : double): void + getid): String + setId(id: String): void + getCourses(): Course[] + getNumOfCourses(): int + addCourse(newCourse : Course): void + printCourses(): void + toString(): String + Faculty + Faculty(name : String, age : int, address String) + addCourse(newCourse : Course): void + printCourses(): void + getNumberOfCourses(): int + getSalary): double + toString : String . PermanentFaculty - BASIC_SALARY: double = 5000 - courses : Courseſ ] - numberOfCourses: int + PermanentFaculty + PermanentFaculty(name : String, age : int, address : String) + addCourse(newCourse : Course): void + printCourses(): void + getNumberOfCourses(): int + getSalary(): double + toString(): String VisitingFaculty BASIC_SALARY: double = 4000 - courses : Courseſ ] - numberOfCourses: int + Visiting Faculty + VisitingFaculty(name : String, age : int, address : String) + addCourse(newCourse : Course): void + printCourses(): void + getNumberOfCourses(): int + getSalary(): double + toString(): String
Bonus Marks Questions: Suppose you want to add these functionalities into your program: i) A teacher can now assign grades (numeric grade on a scale 4.0) to the courses he teaches. ii) The students can only see their grades when a teacher posts the grade iii) When the grades of all courses known to a student a cgpa is calculated for the courses he has taken so far. Hints for Bonus Marks Questions: 1. You can create a class Grade which will hold a particular student and his grade (numeric grade) in a particular course, modify the class Course and add the fields that you think will be necessary to implement the system for a faculty to assign grades to the courses he teaches. Also, modify Student Class so he can see the grades of the courses he has taken. 2. You can use a flag. Implement a method which will check whether the grades for a specific course is posted or not for a specific student, and implement the logic. 3. You can use the flags for different courses a student has taken. The cgpa is calculated with previous cgpa and the current semester's gpa.