/***********************************************************/ /* This program reads in the distance to be covered on a */ /* trip, our average speed, and our departure time. */ /* It calculates and prints our travel time and estimated */ /* arrival time. */ /***********************************************************/ #include //define constants int main(void) { int depart_hours, depart_mins, hours, mins, arrival_hours, arrival_mins; float distance, speed, travel_time; /*********************************************************/ /* Read in the distance, speed, and departure time. */ /* Departure time is in the form hh:mm. */ /*********************************************************/ /*********************************************************/ /* Calculate travel time and arrival time. */ /*********************************************************/ travel_time = distance / speed; //break down travel time into hours and minutes //calculate arrival hours and arrival minutes /*********************************************************/ /* Print results. */ /*********************************************************/ return 0; }