Make a class that represents an average of test scores. Make the class take an unlimited number of scores and calculate the number of tests taken along with the average.   Class name: TestScores Fields: - name : String - totalScore : double - numScores : int Methods: + TestScores(name : String) + addTestScore(earned : double) : void + getNumTestsTaken() : int + getAverage() : double   Write in java and use test case 1 as an refere

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section8.2: Lookup Tables And The Iferror Function
Problem 7QC
icon
Related questions
Question
Make a class that represents an average of test scores. Make the class take an unlimited number of scores and calculate the number of tests taken along with the average.
 
Class name:
TestScores
Fields:
- name : String
- totalScore : double
- numScores : int
Methods:
+ TestScores(name : String)
+ addTestScore(earned : double) : void
+ getNumTestsTaken() : int
+ getAverage() : double
 
Write in java and use test case 1 as an reference
Test Case 1
Alice
\n
Num tests taken: 6 \n
Average: 69.5 \n
Bob
\n]
Num tests taken: 4 \n
Average: 80.0 n
Transcribed Image Text:Test Case 1 Alice \n Num tests taken: 6 \n Average: 69.5 \n Bob \n] Num tests taken: 4 \n Average: 80.0 n
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage