Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help writing a simple C++ code. I am competing in a Triathlon in September. The race consists of a run, followed by a kayak

Need help writing a simple C++ code. I am competing in a Triathlon in September. The race consists of a run, followed by a kayak segment, and a race back to the starting point on a bicycle. I want you to write a program that allows me to enter the time in hours, minutes and seconds for each segment( 3 sets of prompts, once for each event lots of copy and paste) and gives me a total time in hours, minutes and seconds. They come pull you off the course in 3 hours so I need to know how Im doing in training to avoid being booted off the course. The answer must be reported in hours, minutes, seconds (Ex. 2 hrs 20 min NOT 1 hr 80 min) use mod and div to get the final answer

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago