C++ Exercise 8 - part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,891
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 4, 2009

PART 2 HERE : http://www.youtube.com/watch?v=O0j1qP687Mo

This is part 1 of this program because it was kind of long. Problem : Write a function that calculates the elapsed time in minutes between a start time and an end time expressed as integers on a 24-hour clock (8:30 pm = 20:30). You need to deal only with end times occuring later on the same day as the start time. Then, write a function to calculate the speed (km/h) one must average to reach a certain destination by a designated time. Function inputs include same-day departure and arrival times as integers on a 24 hour clock and the distance to the destination in miles.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • how would just the first part of this program work?

    Write a function that calculates the

    elapsed time in minutes between a start time and an end time

    expressed as integers on a 24-hour clock (8:30 PM => 2030).

    You need to deal only with end times occurring later on the

    same day as the start time.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more