Question: Java Code Please. For Number 2: Does define a constant for the divisor meaning double totalTest = 3.0 For the second part of creating a

Java Code Please.

For Number 2: Does define a constant for the divisor meaning

double totalTest = 3.0

For the second part of creating a TestScores program

how do we ~~~>Call calcAverage() and displayInfo() for both student objects from the driver program?

The returned value from calcAverage() in a variable, then pass that variable as an argument to the displayInfo() method. How do we code this?

Java Code Please. For Number 2: Does define a constant for the

divisor meaning double totalTest = 3.0 For the second part of creating

Homework Assignment Chapter 4b Create a Project named Chap4b 1. Create a Student class with instance data fieldsfor: student id, test1, testa, and test3. 2. Define a constant for the divisor. 3. Create one constructor with parameter values for all instance data fields. 4. Create getters and setters for all instance data fields. 5. Provide a method called calcAverage that computes and returns the average test score for an object to the driver program. Use the constant. 6. Create a displayInfo method that receives the average as a parameter from the driver program and displays student ID, all test scores, and the average test score. Use get methods to display the student ID and test scores. Use the average test score passed to this method to display the average. Create a driver program named TestScores 1. Create 2 student objects as follows: Student FC123 is created with test scores: 100, 80, 94 Student FC456 is created with test scores: 78, 92, 80 2. Call calcAverage() and displayInfo() for both student objects from the driver program. Be sure to save the returned value from calcAverage() in a variable, then pass that variable as an argument to the displayInfo() method. Expected Output: Student ID: FC123 Test 1 score: 100 Test 2 score: 80 Test 3 score: 94 Average test score: 91.33 Student ID: FC456 Test 1 score: 78 Test 2 score: 92 Test 3 score: 80 Average test score: 83.33

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!