Question
An ironman race consists of a 2.4 mile swim, a 112 mile bike ride, and a 26.2 mile run. Have the user enter a name
An ironman race consists of a 2.4 mile swim, a 112 mile bike ride, and a 26.2 mile run. Have the user enter a name and the times for the three events for four participants. Time will be entered in hours, minutes, and seconds. Decide who is the winner in each event and for the overall race. Also calculate the speed of each participant in miles per hour in each event. The output should be (name) Swim: Finished in (hours):(minutes):(seconds) going (speed) mph Cycling: Finished in (hours):(minutes):(seconds) going (speed) mph Run: Finished in (hours):(minutes):(seconds) going (speed) mph Overall: Finished in (hours):(minutes):(seconds) going (speed) mph. Winners: Swim: (name) Cycling: (name) Run: (name) Overall: (name) Sample times: Luke 00:51:17 04:22:25 02:57:20 Sam 00:54:13 04:22:33 02:58:35 Julie 00:51:13 04:34:21 02:52:37 Chris 00:51:02 04:34:39 02:53:18
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started