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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 19 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply