subject
Engineering, 05.12.2019 23:31 seby951

You will write a racing report program using object-oriented programming with three classes:
reportdriver, racereport, and race. the main method of the program will be in the
class reportdriver and will include a loop that allows you to enter in more than one race and
have reports written out for all the races you enter. (the user will enter one race then get a report
for that race. after that, the user will be asked whether they want to enter in another race and get
another report. this repeats until the user says they do not want to enter in any more races.)

program description

there are two major tasks in this assignment. your first major task is to write a program that
collects three pieces of user input about a race and provides a summary of facts about the race.
input will be via the keyboard and output (i. e., the summary of facts) will be via the display
(a. k.a., console window). the three pieces of user input will be the three individual race times
that correspond the first, second, and third top race finishers; your program will prompt the user to
enter these in via the keyboard. note that you cannot assume these times will be in order; putting
them in order is one of the first things your program should do. thus, your program will need to

do the following:

1. prompt the user for three ints or doubles, which represent the times for the three racers.
2. sort the three scores into ascending order (i. e., least to greatest).
(a) remember, to swap two variables requires a third, temporary variable.
(b) see the math class (documented in savitch ch. 5; see the index for the exact location
. . this is good practice for looking things up) for methods that might you (e. g.,
min and max). note that these methods produce a return value.

(c) output the sorted race scores in order.

3. describe the overlap in times, if any exist. the options will be:
(a) all are tied for first.
(b) some are tied for first.
(c) none are tied for first.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 04.07.2019 18:10
What are the two (02) benefits, which may result from a successful implementation of preventive maintenance (pm) program in an organization? (clo3)a)- lean manufacturing b)-overlapping responsibilities c)-the planner is not qualified d)-accurate contractor information e)-reduction in equipment redundancies f)-accurate stores information
Answers: 3
question
Engineering, 04.07.2019 19:10
Which of the following is the most important advantage of a large field of view? a. allows larger areas to be examined b. relieves eyestrain c. minimizes parallax errors. d. increases precision in proportion to the in- crease in field of view
Answers: 2
You know the right answer?
You will write a racing report program using object-oriented programming with three classes:
...
Questions
question
Mathematics, 15.04.2021 05:10
question
Mathematics, 15.04.2021 05:10
question
Mathematics, 15.04.2021 05:10
Questions on the website: 13722362