Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Requirements and Implementation ExplanationThe project requires implementing a Course Prerequisite Planner and Campus Route Finder application in C Write me the full code plese

Project Requirements and Implementation ExplanationThe project requires implementing a Course Prerequisite Planner and Campus Route Finder application in C Write me the full code plese programming language, with the following tasks:Task 1: Implement Dijkstras Algorithm to Find the Shortest Path Between Buildings1.Input File (input_buildings.txt):This file contains building names and distances between them. The file must initially have the information in the table provided but can be extended with more buildings and distances.Example Content:Masri#A.Shaheen#70A.Shaheen#Aeqad#602.Graph Representation:You can use either an adjacency matrix or adjacency list to represent the graph.3.Dijkstras Algorithm Implementation:Read the file input_buildings.txt and build the graph data structure.Implement Dijkstras algorithm to find the shortest path between two buildings.The user inputs the names of two buildings, and the program prints the total distance and the route between them.Task 2: Implement Topological Sort to Sort Courses Based on Prerequisites1.Input File (input_courses.txt):This file contains the list of courses and their prerequisites.Example Content:COMP2310#COMP133ENCS3340#COMP233#COMP1332.Topological Sort Implementation:Load the courses from the file input_courses.txt.Sort the courses using topological sort and save them internally in the program.Print the sorted courses upon request.Application MenuYour 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.

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

Navigating The Supply Chain Maze A Comprehensive Guide To Optimize Operations And Drive Success

Authors: Michael E Kirshteyn Ph D

1st Edition

B0CPQ2RBYC, 979-8870727585

More Books

Students also viewed these Databases questions

Question

Explain Coulomb's law with an example

Answered: 1 week ago

Question

What is operating system?

Answered: 1 week ago

Question

What is Ohm's law and also tell about Snell's law?

Answered: 1 week ago