Using Sellerjava Service Class Sellerratingsjava Client Class Example Implement Program Ca Q37068160

  1. Using Seller.javaPreview the document (service class)and SellerRatings.javaPreview the document (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
          OR
          OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.