Question: in python 2. Subway Planner Overview: This is a great project, but there is a technical issue you should discuss with me if you want
in python

2. Subway Planner Overview: This is a great project, but there is a technical issue you should discuss with me if you want to do it! The user will be able to do two things 1) Create a subway network, and 2) Ask about various routes. To create the network, the user can do the following: . Create a subway station with some name Connect two subway stations by some subway line, and indicate howlong to travel between those two stations using that line. takes Then the user can ask about routes, by entering the names of two subway stations, and the program will tell the user the fastest way to get from one to the other using the current subway network. Requirements You must 1) create a class named Subway Planner, which will be described below, 2) create other classes as needed, which will all be known by the top level class Subway Planner, 3) write a simple console application (no graphics!) that uses the class SubwayPlanner, with a few simple method calls, to create an interactive subway planner more methods) (a) The initializer takes no inputs. The class SubwayPlanner, must have at least the following methods it may have (b) createStation: Takes a single string input as an argument and adds this station to the network, attaching it to no other stations. (c) createLine: Takes as input (A, B, L, T), where A, B, and L are strings, and T is a float. It creates a subway line between the 2 stations with names A and B. It connects A and B by the subway line with name L, and using line L the time it takes to go between A and B is t T (where T is measured in minutes). If A and B are the same, or one of A or B is not a station, then no subway line is created. If the exact subway lne already exists (i.e. same A, B, and L) then nothing new is created. Returns the boolean True if a new subway line was created, and False otherwise. (d) fastestRoute: Takes two string inputs A and B. It returns two things) The fastest travel time between A and B, and 2) A route that achieves this fastest time. The route should be returned as a list, where each entry of the list is a tuple (X Y, L), where X is a station, Y is a station, and L is a line between X and Y (e) display: This creates a text output of the current state of the network. i. The string "Stations: followed by a comma separated listing of the stations, ii. The string "Line: followed by a comma separated listing of the subways lines, where each subway line is of the form "station name], station name line name [travel timel)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
