CS23005 Design and analysis of algorithms

Autumn 2004--2005

Assignment 7

You are given two files:

airports.txt
A list of airports together with the transit and check-in time needed for each airpot.

flights.txt
A list of flights. Each line specifies the source city, the destination city, the departure time, the arrival time and the one-way and round-trip fares (in Indian Rupees).

Part 1

Write a function that accepts as input and that computes A passenger must be given time for check-in and transit, and all these must happen after the specified time t. Here the time of travel is measured by the arrival time at D minus t.

Part 2

Write another function that accepts as input and that computes Here the total time of travel is (the arrival time at D minus t1) + (the arrival time at S minus t2).


Home