Question: Define a class Student which extends Person defined in class. It adds the attributes Int Test1, test2, test3 Double average String grade Define a constructor

Define a class Student which extends Person defined in class. It adds the attributes

Int Test1, test2, test3

Double average

String grade

Define a constructor which takes all the attributes of person and uses a default value of 0 for the test scores, unknown for grade and 0 for aversge. It has methods computeaverage() and calculategrade(). The grades are based on the average, with above 92 an A, 85 to 92 a B, 70 to 85 a C, 60 to 70 a D etc. Grades only has a getter. All other attributes have a setter and a getter.

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!