Marking guide for assignment #1 ####################################################################################### Question 1 (70 marks) the program falls in one of three categorites : program does not compile compiles but crashes when trying to run runs without crashing The marks are divided as follows: --------------------------------- (6 marks) are given for three test files that are used to test compress.exe and uncompress.exe ---------- test1:(3 marks) is similar to the one given in the assignment. possible errors : original file size is longer than uncompressed file size for -2 no compressed file obtained (-1.5) no uncompressed file obtained (-1.5) test2:(2 marks) is used to check if the program handles a character that is repeated more than 255 times and -v option including obtaining the right ratio (-2) test3 :(1 mark) tests if the compress program will result in an infinite loop in some cases. (4 marks ) style some marks will be deducted here if not enough comments are inserted that would -----------explain the functionalities of the program or the code is not clair enough for someone else to understand. (COMPRESS (30 marks) two possible cases : ------------------------------------------ A. compiles and runs without crashing the 30 marks are divided as follows: a. 10 command line processing, opening/closing files, error handling possible discounts are : - fixed name for input/output files. -trying to open an unexisting file. - .rle naming. - command line processing (-v) b. 20 run length encoding algorithm -read file into array (-5 if fixed sise array) (,-3 if dynamic array ) - char/int (-3) writing the counter value as an integer rather than using unsigned char - text/binary (-5) opening the file in binary mode and then using integers instead of unsigned char (in this case for example the compressed file contains : "*a360" -infinite loop (-2) occurs due to reading twice without checking forend of file. B.Program doesn't compile or crashes when run : In this case the maximumm mark given is (15/30) (UNCOMPRESS (30 marks) two possible cases : ------------------------------------------ A. compiles and runs without crashing a. 10 command line processing, opening/closing files, error handling possible discounts are : - fixed name for input/output files. -trying to open an unexisting file. - .rle processing - command line processing (file name) b. 20 run length encoding algorithm -read file into array (-5 if fixed sise array) (,-3 if dynamic array ) - char/int (-3) writing the counter value as an integer rather than using unsigned char -infinite loop (-2) error in stopping condition. B.Program doesn't compile or crashes when run : In this case the maximumm mark given is (15/30) up to (-4) marks can be deducted from the final mark (out of 70)if standards were not followed: Examples are : a. using wrong file names for .cpp and .txt files b. zipfile: when unzip file, zipfile can't be unzipped into a directory directly (-1) c. missing student name&number at the top, etc. #######################################################################################