Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started