CSCI0050 Challenge Problems with Flights
1 Challenge Problems:   Programming With Flights
CSCI0050 Challenge Homework: Flight Routes

This is not a required assignment. It is a challenge problem for those who have been asking for them. We are happy to work with you to figure these out, or to go over your solutions.

1 Challenge Problems: Programming With Flights

An airline maintains information on flights as a list of flight-values defined with the following data blocks:

  data FlightInfo:

    | flight(

        from-city :: String,

        to-city :: String,

        departure :: Time,

        arrival :: Time

      )

  end

  

  # time is for 24-hour format

  data TimeData:

    | time(

        hours :: Number,

        mins :: Number

        )

  end

Using these data blocks, write the following two functions:

Tips and Hints

The flights problems are a non-trivial jump over the problems we have tried so far.