Computer Science 101 Major Program 1 Due Oct 22 at 11:59 pm Complete the image mirror program that is outlined in the notes. 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 ONE (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. HOW TO SUBMIT YOUR CODE: You must submit 4 files: image.h main.c image.c (image reader and writer) mirror.c (mirror image builder) To compile your program use: gcc -g -Wall main.c image.c mirror.c NOTE: This procedure has NOTHING in common with "handin" nor "sendlab" Do NOT even TRY to think about how they fit into this procedure because THEY DON'T!! 1. From any departmental lab system ssh to workstation jmw 2. The submission directories lie in the directory /local/jmw2/101/mp1 which is available ONLY IF YOU HAVE LOGGED INTO WORKSTATION jmw. Each student has a subdirectory of /local/jmw2/101/mp1. The name of your subdirectory is your userid (in the example we will assume your id is wjsmith). 3. copy (via the cp command) required files to your subdirectory in /local/jmw2/101 /mp1 For example: cp /home/wjsmith/101/mp1/flag.c /local/jmw2/101/mp1/wjsmith Here you would obviously need to replace /home/wjsmith/101/mp1/flag.c with wherever you have your the program you are trying to submit. 4. Don't modify the permissions on your subdirectory. They are set so that ONLY you can access your directory. ---------------- After you think you have turned your programs in, its a good idea to cd /local/jmw2/101/mp1/wjsmith and make sure your files are there and they still compile and work correctly. Late programs will be subject to N^2 penalty where N is the number of days late.