Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this project, you need to implement a Course Prerequisite Planner and Campus Route Finder application in C programming language, with the following tasks: Implement
In this project, 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 year students to find the shortest path between specific buildings using Dijkstra algorithm by reading the required information from the inputbuildings.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.
table direction,Masri,Aggad,AShaheen,Bamieh,ALJuraysi,Alsadik,KNHShShaheenMasriAggadAShaheen,,BamiehALJuraysi,,,,,,,,AlsadikKNHShShaheen,
inputbuildings.txt: contains for example contains some buildings, but you can add more buildings.
tableMasri#AShaheen#AShaheen#Aggad#
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 year students in computer engineering to sort the courses they must take using topological sort. The application must load the courses from the inputcourses.txt file, where this file will contain the courses listed in the table below:
tableCoursePrerequisitesCOMPCOMPCOMPCOMPCOMPCOMPCOMPCOMPENCSCOMPENCSENCSENCSCOMPENCSENCSENCSCOMP and COMPENCSCOMP and COMP
inputcourses.txt: contains the list of courses and their prerequisite, below is an example.
COMP# COMP
ENCS# COMP# COMP
You have to fill in the file with all courses and their prerequisites
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:
Load the two files.
Calculate the shortest distance between two buildings.
Print the shortest route between two buildings and the total distance.
Sort the courses using the topological sort.
Print the sorted courses.
Exit the application.
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