Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How would this translate in Pseudocode ? Write a definition of the class Tests such that an object of this class can store a students

How would this translate in Pseudocode ?

Write a definition of the class Tests such that an object of this class can store a students first name, last name, five test scores, average tests score and grade. (Use an array to store test scores.) Add constructors and methods to manipulate the data stored in an object. Among other things, your class must contain accessors, mutators, mechanisms to calculate grades, return grades, and modify individual test scores. You must also write a mechanism which must return all object data (including students name, five test scores, average, and grade) as a string.

Write a program to calculate students average test scores and the grade. (You will ask the user to input all students and their grades)

You may assume the following input data:

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

Sun Xie 79 85 28 93 82

Kiran Patel 85 72 49 75 63

Use an array of objects of the class Tests (designed in part (a) to store each students data.The program should output data as close as possible to the following form:

First Name Last NameTest1Test2 Test3Test4Test5Average Grade

Jack Johnson85.0083.00 77.00 91.00 76.0082.40B

Ravi Gupta92.0083.00 30.00 69.00 87.0072.20C

Danny Clark60.0085.00 45.00 39.00 67.0059.20F

Robin Bronson93.0094.00 89.00 77.00 97.0090.00A

Sun Xie79.0085.00 28.00 93.00 82.0073.40C

Class Average = 70.94

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

Step: 3

blur-text-image

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

Question

EXPLAIN under what conditions it is best to use an incentive plan.

Answered: 1 week ago