Question: Please help thanks!!!!!! P Program Tasks For this project, you need to determine the shortest route for your gLyft driver. The route starts from a

Please help thanks!!!!!!

PPlease help thanks!!!!!! P Program Tasks For this project, you need todetermine the shortest route for your gLyft driver. The route starts froma given starting point, proceeds to the customers' planets, and ends at

the given endpoint. You will need to read in data from inputfiles, determine the route, and create an output file with a "map"

Program Tasks For this project, you need to determine the shortest route for your gLyft driver. The route starts from a given starting point, proceeds to the customers' planets, and ends at the given endpoint. You will need to read in data from input files, determine the route, and create an output file with a "map" of the planets and the route the gLyft driver needs to take to get from the starting point to the end point. These tasks are detailed in the next sections. Input Data There are two input files that are required by your program: 1) a locations file, and 2) a planetary names file. The files themselves are defined in the Input Files Section. The sections below describe the procedures needed to process the data within the input files. Get Filenames Your program must prompt the user for the names of the two input files (this makes the program flexible --the person using it can call the files whatever they want). Prompt the user for the locations file first using "Enter Locations Filename:"; the user then enters the ?location.file>.txt name. Then, prompt the user for the planetary names filename, .txt with "Enter Names Filename: ". Open Files Once both input filenames have been entered by the user, the program must then open the files for reading. If either of the input files is not found or cannot be opened for reading, the program must output "Input file could not be opened" to the terminal followed immediately by (on a separate line) program exit with codereturn 1;. Note that you do not need to determine which file caused the failure; simply print the message and exit the program. Note The provided test cases do not test the error handling of input files. You must generate your own test case to ensure compliance. Do not submit your test case, just ensure your code satisfies this important project specification. Read Data The locations file and the planetary names file are detailed in the Input Files section. Note that the locations file contains the range for that particular gLyft driver (i.e., number of rows and columns

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!