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.
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.
shannonNgordy 3 weeks ago