subject

7.2: Student Modify the Student class presented in this chapter as follows: Each Student object should also contain the (integer) scores for three tests. Provide a constructor that sets all instance values based on parameter values, with the score parameters coming last in the list. Overload the constructor so that each test score is assumed to be initially zero. Provide a method called setTestScore that accepts two parameters: the test number (1 through 3) and the score. Also provide a method called getTestScore that accepts the test number and returns the appropriate score. Provide a method called average that computes and returns an integer average test score (the average rounded to the nearest integer) for this student. Modify the toString method so that the test scores and average are included in the description of the student. The String returned should be the same as the original with a string of this form appended as an additional line: Average

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:30
Qr or codes let any piece of print host a link to online information.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
You know the right answer?
7.2: Student Modify the Student class presented in this chapter as follows: Each Student object shou...
Questions
question
Chemistry, 11.03.2021 05:00
question
Mathematics, 11.03.2021 05:00
question
Mathematics, 11.03.2021 05:00
Questions on the website: 13722367