Question: 1) Write a C program, which finds only a path (not all the paths) between two given cities according to the directed graph below.
1) Write a "C" program, which finds only a path (not all the paths) between two given cities according to the directed graph below. This program also calculates the distance between given these two cities. Prague 1845km Beijing Helsinki 303km 7815km 1264km 4616km Tokyo 11550km 8132km 5782km 10838km Jakarta 9566km New York London 5567km Sample screeen output of the question Cities: Prague = 0 Helsinki = 1 Beijing 2 Tokyo = 3 Jakarta 4 London = 5 New York 6 1 - Enter the number of the first city: 0 2 - Enter the number of the second city: 2 Path found: Prague, Helsinki, Tokyo, Jakarta, Beijing, Total distance is 20058 Process exited after 1.854 seconds with return value Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
