Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A. Create a new project named StudentScores Create a Student class with instance data as follows:student id and the scores for three tests. Provide 2

A. Create a new project named StudentScores

Create a Student class with instance data as follows:student id and the scores for three tests.

Provide 2 constructors as follows:

1) parameter values for all instance data fields

2) parameter for only the student id

Provide a method called setTestScore that accepts two parameters: the test number (1 through 3) and the score. You will need to use 'if' statements to set the score to the proper test.

Also provide a method getTestScore that accepts the test number and returns the appropriate score. You will need to use 'if' statements to get the proper test score.

Provide a method called average that computes and returns the average test score for this student

Create a DisplyInfo method to show student ID, test scores, and average test score.

B. Create a driver program called TestScores.

Create 2 students as follows: ID FC123

ID FC456

Student FC123 is created with the follow three test scores: 100, 80, 94 Student FC456 is created only with the id. Later, call setTestScore with three scores 78, 92, 80

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

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I - -[ze dx

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = 1- 1 dx 9

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago