You are to develop a train route finder program in C++. The program is for a company which is in charge…
You are to develop a train route finder program in C++.
The program is for a company which is in charge of five train stations in central England and users need to find journey times, routes (i.e., which stops link these five stations), and costs for journeys between the five stations. Information on routes (stops between stations) can only be added, or loaded from file, by an administrator when the program is running.
The following table provides the station names, costs and journey times for the journeys (first value cost in £, second value travel time in minutes; rows indicate the origin and columns the destinations: a journey from Leicester to Derby hence costs £13.00 while the return journey costs £13.70):