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, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
question
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
You know the right answer?
7.2: Student Modify the Student class presented in this chapter as follows: Each Student object shou...
Questions
question
Mathematics, 18.07.2019 16:10
question
Computers and Technology, 18.07.2019 16:10
question
Medicine, 18.07.2019 16:10
question
Computers and Technology, 18.07.2019 16:10
Questions on the website: 13722362