Question
Rules: This is a grouped assignment. Only the team leader has to submit the solution. The attached source code should be modified and submitted. Your
Rules:
- This is a grouped assignment. Only the team leader has to submit the solution.
- The attached source code should be modified and submitted.
- Your submission WILL BE REJECTED if you used any other language or created a separate project. You must make changes to this current source code.
- Once the code is complete, run your test cases before submitting the code.
Objective:
- The program should input two strings: start and destination
- The output of the program should be a Path containing a list of BusRoute objects specifying Origin as where to take bus from and Terminus as where to drop off.
- The output should also mention the length of the path in terms of number of stops which occurred during travel.
- Secondary objective is to provide an optimal solution, i.e. the shortest path which has minimum length, or number of stops in between.
Code:
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using CsvHelper; using CsvHelper.Configuration;
namespace Assignment4 { public class BusRoute { public string Origin { get; set; } public string Terminus { get; set; } public string Name { get; set; } public int Stops { get; set; } public string[] Route { get; set; } }
internal class Program { static void Main(string[] args) { Console.WriteLine("Enter your "); string Start = Console.ReadLine();
Console.WriteLine(""); string Destination = Console.ReadLine();
string filePath = "data.csv"; List
static List
static List
static List
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