Assignment#3 - CSI2131-Winter 2001 WRITTEN PART - QUESTION # 1 question 1: question 2: -2: didn’t divide by the number of runs -3: answer of 100: (500,000/100) = 5000 (500,000/5000) = 100 -4: 1 run of 5000 records question 3a: question 3b: -3: multiplied answer by 5 question 3c: -2: used 80 instead of 100 question 3d: -2: divided by the number of output buffers PROGRAMMING PART - QUESTION # 2 Running Tests: 0/5 for test 1: missing records, not sorted properly, statistics incorrect & funny output -1: extra 4 blank records -2: repeated records -2: missing records -2: not sorted properly -2: too many records, funny output (student records span more than a line) 0/5 for test 2: tests eof by checking to see if already read in 100 records from that file -3: output more records than read in (ie. still outputs 400 records, when some are deleted from one of the input files) -4: test caused computer to crash, (or run infinitely) buffer manipulation I/O: -5: always reads in 10 at a time from the files -5: buffer writes to the file everytime, doesn't wait until it's full cosequential processing: -3: doesn't initially fill buffer -3: doesn't find minimum student correctly -2: doesn't flush at the end Standards: -2: missing files -1: missing part of printouts -3: missing over half of the required printouts or more -1: wrong file names -2: extra files Style problems: -5: no comments -3: merging done in main program -2: didn't use general constants for buffer size -2: didn't use general constants/variable for number of files to merge -6: cosequential processing is fixed for 4 files (here I mean the comparisons are done between 4 files to find the minimum, rather than a loop to find the minimum in array) student manipulation & statistics manipulation: -1: for outputting student records different from the way they were inputted (ie. 2053 3 76 instead of 000205303076 ) -3: for errors in statistics (wrong numbers, not written out) -5: for not implementing methods to take care of statistics