Computer Science 481/681 Program 5a Complete by Oct 4 This program will not be graded but I will be UNWILLING to help you on program P5 until you can demonstrate a correct version of program p5a. Your mission here is to complete the "infrastructure" needed to support incorporating image warps into the viewer. This will be done in two steps. Step 1 should be complete by Oct 4. Step 1 - Complete the functions that are missing bodies in vector.h. When you are done, you should be able to make vectest with no errors or warning messages and vectest should produce the output found in vectest.out. ONLY AFTER STEP 1 is WORKING Step 2 - Complete the functions that are missing bodies in box.c When you are done, you should be able to make boxtest with no errors or warning messages and boxtest should produce the output found in boxtest.out. Supporting code is in the p5 directory. You will need to supply your own image.h and imagehdrs.h -------------------- READ THIS ------------------------------- For this program the ONLY authorized sources of code is the code in the p5a directory and code you have created with the KEYBOARD. Electronic exchange of code and/or screen scraping of code from other sources is explicitly prohibited. You are free to discuss the problem with other members of the class, describe problems you are having to other members of the class, and offer verbal solutions, but you are NOT ALLOWED to VIEW the program of other class members for any reason --- looking at someone's code is explicitly FORBIDDEN regardless of whether the intent is to help them solve a problem or to help YOU solve your problem. This rule is equally applicable to electronic and hard copy. You are responsible for protecting your own code. If I should receive duplicate code, all parties involved will receive the SAME PENALTY regardless of who actually wrote the code. If you are stuck on a programming problem, you are encouraged to contact Dr. Westall by e-mail. Such email should contain: 1 - A description of the problem you think you are having (e.g. I am getting a segfault when I call fread() to read the pixel data. 2 - The name of any input file and value of any input parameters (so that I can reproduce what you are doing) 3 - An attached .tar file that contains your code and input data To create a tar file: Assume code in directory /home/student/class/481/p5a (1) cd /home/student/class/481/p5a (2) tar cvf ../me.tar . (3) the me.tar file you need to send will be created in the parent directory --------------- BE CAREFUL WITH tar -------------------- Enter the command exactly as shown above. A common error is to think I remember and do something like tar cvf * This will DESTROY the alphabetically first file in your directory!! --------------------READ THIS TOO ------------------------------- Adhere to the following programming standards. Violations will lead to deductions. (1) no function should be longer than 20 lines code + whitespace. (2) the maximum nesting level in any function is TWO (3) code lines should not extend beyond column 72 (4) no more that one statement may be written on a single line (5) use reasonably descriptive names for variables and functions (6) your program should compile without any warnings with gcc -Wall (7) indenting should be consistent with logical nesting (8) diagnostic / debug prints should be disabled/deleted in your submission.