- Using Seller.java (service class)and SellerRatings.java (client class) asan example, implement a program that calculates and displays thegrade average for a test.
- service class Test should have one instance variable:courseName, secondary constructor, and two business methods:calcAverage and toString.
- calcAverage method accepts one varargs parametergrades and calculates the grade average based on the passedcontent. It returns the calculated average to the caller.
- client class should:
- create Test object
- client should not create any array, it should call calcAveragemethod three times to calculate the average for three tests:
- first call should pass 5 grades,
- second call should pass 11 grades,
- and
OROR
- service class Test should have one instance variable:courseName, secondary constructor, and two business methods:calcAverage and toString.