. CSE 109 HW 5 Due 9 PM Tuesday 22 April 2008 This homework is an exercise in writing simple C programs. Write a well modularized program (i.e., that makes good use of function calls and) that assumes each line of input from the screen, except the last, consists of exactly two entries, an int followed by a double. The program should store the contents of the lines in an array of structs, sort the structs, using the int as a key, and then displays the sorted list. A negative int should be used as a sentinel for the list. Store the program in the file "hw5.c". You should compile the program using the -xc option. To test your program I will compile it with the command gcc -xc hw5.c To submit your homework, create a subdirectory of csc109.081 called hw5 (that is, from your root directory /csc109.081/hw5). The subdirectory hw5 should only contain the file hw5.c. NOTE: This homework (like all homeworks) will only be collected once (unlike programming assignments, for which there were be multiple opportunities to submit your solution). NOTE: To read a double with scanf, you need to have an l(ell) after the %, e.g., scanf(" %lf", &d). ^-------------- The letter ell NOTE: In the documentation for the program, include the name of your partner. NOTE: A well-modularized program in this case should have a main() that declares the variable(s) and then makes a few function calls to accomplish your task. Don't shy way from the function calls. Writing them is part of the task. NOTE: To make life easier, create a test file with some data, say "testFile". Then, if the executable file is "hw5", you can write hw5 < testFile and the program will read from "testFile" rather than the screen.