Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!