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 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:10
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
question
Engineering, 04.07.2019 18:20
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
You know the right answer?
You will write a racing report program using object-oriented programming with three classes:
...
Questions
question
Geography, 13.02.2021 01:00
question
Mathematics, 13.02.2021 01:00
question
Mathematics, 13.02.2021 01:00
question
Mathematics, 13.02.2021 01:00
question
English, 13.02.2021 01:00
Questions on the website: 13722361