C Homework 6 - due 04/20 1. Assignment Write code that (a) reads-in data from the file stores.txt, (b) prompts the user to enter his/her location, (c) prints out the name and distance to the closest store You should create your own stores.txt. It should contain exactly 10 stores and have the following format: - name of the store (at most 20 characters) - x coordinate of the store (0 <= x <= 100) - y coordinate of the store (0 <= y <= 100) To work on this assignment, start with the file geolocation_reference.c. Call your program closest_store.c and submit it via Webcourses. 2. Extra credit assignment Instead of just printing the closest store in (c), print out the stores in non-decreasing distance to the user. After initializing the array stores_t stores[NUMSTORES] you are not allowed to swap data inside this array. Instead you should only swap the entries of int index_array[NUMSTORES] and pick the right stores indirectly by using index_array like so: For instance, after sorting, the names of the closest and second closest store are stores[index_array[0]].name stores[index_array[1]].name Example file store.txt: Starbucks 63 29 BestBuy 46 72 Target 53 35 Lowes 100 6 Walmart 2 35 HomeDepot 36 33 Publix 18 25 Pats 20 14 Shamrock 77 77 Catalyst 62 38 Corresponding output: Enter the coordinates of your location (x, y): 1 15 Store Pats (20.00, 14.00) is 19.03 units away Store Publix (18.00, 25.00) is 19.72 units away Store Walmart ( 2.00, 35.00) is 20.02 units away Store HomeDepot (36.00, 33.00) is 39.36 units away Store Target (53.00, 35.00) is 55.71 units away Store Starbucks (63.00, 29.00) is 63.56 units away Store Catalyst (62.00, 38.00) is 65.19 units away Store BestBuy (46.00, 72.00) is 72.62 units away Store Shamrock (77.00, 77.00) is 98.08 units away Store Lowes (100.00, 6.00) is 99.41 units away