FastFlight Airlines is a company that owns several commercial airplanes for international and
They have recently been bought by a large conglomerate and have commissioned you to
write a C application to track their planes.
The airline has several planes and need to store the information about several different
Your program is to read a collection of these airports and planes from text files into one or
more Linked List data structures and perform the required processing operations on the
data. Your program should be compiled with make and contain a working makefile.
Task 1 – Data Types (15 Marks)
Declare suitable C datatypes to represent each of the following sets of information in a
1. A Plane type that includes
• Plane ID (an Integer)
• Plane Model (max 63 letters)
• Plane Manufacturer (max 127 letters)
• Plane location (Three Letter Code)
2. An Airport type that includes
• Airport ID (Three Letter Code)
• Airport name (max 127 characters)
• Airport country (max 127 characters)
Task 2 – Loading Data (25 Marks)
Write a function (or collection of functions) that will read a list of airports and planes from text
files and populate appropriate data structures from task 1.
This is an example file (Available to download on Moodle) showing the airport file format:
The airports are categorised in the file by country. Under each country name is a list of three
letter airport codes and names.
This is an example file (Available to download on Moodle) showing the Plane file format:
ASP-Alice Springs Airport
AKL-Auckland International Airport
SPL-SpaceY Lunar Base
Each plane takes up exactly four lines (Id, name, manufacturer, location).