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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, lowkeyqueenk
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
image
Engineering, 04.07.2019 18:10, Talos02
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 18:10, salazjlove
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
image
Engineering, 04.07.2019 18:20, 1230bering
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
Answers: 2
You know the right answer?
You will write a racing report program using object-oriented programming with three classes:
...

Questions in other subjects: