): Implement all the data fields represented in the UML diagram of the class GradesReport as well as the constructor and the setters and getters. Note that: a- studentID initial value is 0, it will be incremented by 1 each time a new student report is created. b- academicYear default value is 2022 and must be between 2000 and 2022, while the studentAverage default value must be 0. c- numberofStudents is a static integer data field with a default value = 0.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
PART I: Given the following UML diagram. Answer the following questions
GradesReport
studentID: int // auto increment
- studentName: String
- academicYear: int // must be between 2000 and 2022
studentAverage: double
- numberofStudents: int // auto increment
+ GradesReport (studentName:
String, academicYear:int,studentAverage: double)
+getStudentID():int
+setStudentName (string name) : void
+getStudentName () : string
+setAcademicYear (int year) :void
+getAcademicYear (): int
+setStudentAverage (double avg) :void
+getStudentAverage () : double
+getRank (double average): char
+getNumberofStudents () :int
+tostring (): String
): Implement all the data fields represented in the UML diagram of the class
GradesReport as well as the constructor and the setters and getters.
Note that:
a- studentID initial value is 0, it will be incremented by 1 each time a new student report is created.
b- academicYear default value is 2022 and must be between 2000 and 2022,
while the studentAverage default value must be 0.
c- numberOfStudents is a static integer data field with a default value = 0.
Transcribed Image Text:PART I: Given the following UML diagram. Answer the following questions GradesReport studentID: int // auto increment - studentName: String - academicYear: int // must be between 2000 and 2022 studentAverage: double - numberofStudents: int // auto increment + GradesReport (studentName: String, academicYear:int,studentAverage: double) +getStudentID():int +setStudentName (string name) : void +getStudentName () : string +setAcademicYear (int year) :void +getAcademicYear (): int +setStudentAverage (double avg) :void +getStudentAverage () : double +getRank (double average): char +getNumberofStudents () :int +tostring (): String ): Implement all the data fields represented in the UML diagram of the class GradesReport as well as the constructor and the setters and getters. Note that: a- studentID initial value is 0, it will be incremented by 1 each time a new student report is created. b- academicYear default value is 2022 and must be between 2000 and 2022, while the studentAverage default value must be 0. c- numberOfStudents is a static integer data field with a default value = 0.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage