Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

4. I give a fair hearing to fellow members ideas.

Answered: 1 week ago