1. Engineering
  2. Computer Science
  3. c practice write the definition of the class tests such...

Question: c practice write the definition of the class tests such...

Question details

C# practice

Write the definition of the class Tests such that an object of this class can store a student's first name, last name, five test scores, average test score, and grade. (Use an array to store the test scores.) Add constructors and methods to manipulate data stored in an object. Among other things, your class must contain methods to calculate test averages, return test averages, calculate grades, return grades, and modify individual test scores. The method toString must return test data (including student's name, five test scores, average, and grade) as a string.

Write a program to calculate student's average test scores and the grade. You may assume the following in put data:

Read these from a file

Jack Johnson 85 83 77 91 76
Lisa Aniston 80 90 95 93 48
Andy Cooper 78 81 11 90 73
Ravi Gupta 92 83 30 69 87
Bonny Blair 23 45 96 38 59
Danny Clark 60 85 45 39 67
Samantha Kennedy 77 31 52 74 83
Robin Bronson 93 94 89 77 97
Sheila Sunny 79 85 28 93 82
Kiran Smith 85 72 49 75 63

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution