Usage: ./isip_dialog_makedb_campus_direction.exe [user] [pass] [host] [database] where is required [user] [pass] [host] [database] are optional, BUT all must be present if one is present. The layout of the required is =====begin start_name [start name value] start_add [address value] start_interest [interest value] start_city [city] start_state [state] start_zip [zip] end_name [name value] end_add [address value] end_interest [interest] end_city [city] end_state [state] end_zip [zip] total_distance [distance number] total_time [time number] directions [number of pairs of directions below> <#1 direction> <#1 mile number> <#2 direction> <#2 mile number> <#3 direction> <#3 mile number> =====end An example of one entry is =======begin start_name MSU/NSF Engineering Research Center start_add start_interest start_city Starkville start_state MS start_zip end_name Diagnostic Instrumentation and Analysis Laboratory end_add end_interest end_city Starkville end_state MS end_zip total_distance 0.49 total_time directions 2 Turn right onto Joe Baddley Dr, Travel on Joe Baddley Dr 0.27 Turn right onto Research Blvd, Travel on Research Blvd 0.22 =======end There are multiple steps in this. Step 1) Determine if start place is located in "Place" table with ====begin select * from place where name like "%s%%" and city like "%s%%" and state like "%s%%" and zip like "%s%%" ====end If not, add it with ====begin INSERT INTO place (name, address, city, state, zip) VALUES("%s", "%s", "%s","%s", "%s") ====end Step 2) Repeat step 1, but with the end place Step 3) Determine the ID of the starting place with ====begin select id from place where name like "%s%%" and city like "%s%%" and state like "%s%%" and zip like "%s%%" ====end Step 4) Repeat step 3, but for the end place Step 5) Test if this route already exists in the table with ====begin select * from route where sid ='%d' and did = '%d' and routeindex = '%d' ====end If not, add it with ====begin INSERT INTO route (sid, did, routeindex, distance, totaldistance, time, directions) VALUES('%d', '%d', '%d', '%s', '%s', '%s', '%s') ====end