Answered step by step
Verified Expert Solution
Link Copied!

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: route_manager.c, using C's heap memory
You are to write an implementation of route_manager in C such that:
a) Based on provided arguments and data file (i.e., dataset), route_manager will help us answer the
first three questions from A 2 :
q1: What are the top N airlines that offer the greatest number of routes with destination
country as Canada?
q2: What are the top N countries with least appearances as destination country on the
routes data?
q3: What are the top N destination airports?
However, this time N is an input provided by the user.
b) Similarly to A2, after each execution, your program must produce a file named output.csv that
represents the answer to the question asked to program (i.e., 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 linked-list manipulation routines (i.e., 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:
emalloc[.c or .h]: Code for safe calls to malloc, as is described in labs \lectures, is available
here.
list[.c or .h]: Type definitions, prototypes, and codes for the singly-linked list
implementation described in labs/lectures.
makefile: This automates many of the steps required to build the route_manager
executable, regardless of what files (.c or .h) are modified. This file can be invoked using
the Bash command make.
route_manager.c: The main file of the program.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 11th British National Conference On Databases Bncod 11 Keele Uk July 7 9 1993 Proceedings Lncs 696

Authors: Michael F. Worboys ,Anna F. Grundy

1993rd Edition

3540569219, 978-3540569213

More Books

Students also viewed these Databases questions