Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this project use c language for a data structure, you need to implement a Course Prerequisite Planner and Campus Route Finder application in C

In this project use c language for a data structure, you need to implement a Course Prerequisite Planner and Campus Route Finder
application in C programming language, with the following tasks:
Implement the required code to assist the 1st year students to find the shortest path between
specific buildings using Diikstra algorithm by reading the required information from the
input_buildings.txt file, the file must initially have the information in the table below, but you
can add more buildings and their distances in the file.
input_buildings.txt: contains for example contains some buildings, but you can add more buildings.
You must fill in the file with all distances between buildings.
Then you can use either contingency matrix or contingency list to represent the graph and store it in
your program. The user inserts two buildings, then the application will find the shortest route between
them, prints the total distance and the route between the two buildings.
Implement the required code to assist the 1st year students in computer engineering to sort the
courses they must take using topological sort. The application must load the courses from the
input_courses.txt file, where this file will contain the courses listed in the table below:
input_courses.txt: contains the list of courses and their pre-requisite, below is an example.
COMP2310# COMP133
ENCS3340# COMP233# COMP133* You have to fill in the file with all courses and their pre-requisites .
Upon request, the application sorts the courses using topological sort and saves them internally in the
program. So, the user can print them on request.
Your application must have the following menu:
1. Load the two files.
2. Calculate the shortest distance between two buildings.
3. Print the shortest route between two buildings and the total distance.
4. Sort the courses using the topological sort.
5. Print the sorted courses.
6. Exit the application.Final Topological Order
The final topological order is:
COMP133, COMP233, COMP2310, COMP2421, ENCS2340, ENCS3130,
ENCS3340, ENCS4320, COMP333, ENCS2380, COMP433, ENCS3310
COMP133, COMP233, COMP2310, COMP2421, ENCS2340, ENCS3130,
ENCS3340, ENCS4320, COMP333, ENCS2380, COMP433, ENCS3310
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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

1. What factors lead to criminal behaviour?

Answered: 1 week ago