Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions