Question: This assignment: route _ manager.c , using C ' s heap memory You are to write an implementation of route _ manager in C such
This assignment: routemanager.c using Cs heap memory
You are to write an implementation of routemanager in C such that:
a Based on provided arguments and data file ie dataset routemanager will help us answer the
first three questions from A :
q: What are the top N airlines that offer the greatest number of routes with destination
country as Canada?
q: What are the top N countries with least appearances as destination country on the
routes data?
q: What are the top N destination airports?
However, this time N is an input provided by the user.
b Similarly to A after each execution, your program must produce a file named output.csv that
represents the answer to the question asked to program ie arguments passed
c You need to allocate storage on the heap dynamically to solve this assignment. Dynamic data
structures must be used in the form linkedlist manipulation routines ie using only arrays is not
permitted for this assignment
d The program itself consists of several C source files and a makefile for build management:
emallocc or h: Code for safe calls to malloc, as is described in labs lectures is available
here.
listc or h: Type definitions, prototypes, and codes for the singlylinked list
implementation described in labslectures
makefile: This automates many of the steps required to build the routemanager
executable, regardless of what files c or h are modified. This file can be invoked using
the Bash command make.
routemanager.c: The main file of the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
