1. Engineering
  2. Computer Science
  3. time can be expressed in hours minutes seconds create a...

Question: time can be expressed in hours minutes seconds create a...

Question details

Time can be expressed in [hours, minutes, seconds]. Create a program in C++ that takes a current time and adds an elapsed time to compute the future time. NOTE: hours are expressed using the 24 hours clock. For example, if the current time is 17, 34, 56 and the elapsed time is 9, 48, 17 then the future time is 3, 23, 13.

You should have variables cth, ctm, cts, eth, etm, ets, fth, ftm, fts, representing the current/elapsed/future hours/minutes/seconds.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution