Assignment#2 - marking grid - marked by James Fei Xin Student total mark:___/100 Datafile design marks: ___ /30 /10 file creation follows own specs if you do not have a design file, -10 I will take all the 10 marks for this part. (but if you hand in a datafile.dat, anyway, I will try to give the mark for datafile design base on that file .) if you have a design file, follow the follow mark guide -2 without assumption Option (-1 if you have assumption but too strong ) -2 without field and record structure design -2 without compaced data file -2 without example -2 no calculation for fields size and file size -1 multi reports or report too long. /20 datafile design (based on generality and space efficiency) 10 generality(base marks): Basicly if you deal with "***" and CR/LFs, you will have this 10 mark. otherwise: -5 for who did not remove "***" -5 for who did not remove the CR/LFs 10 detail:(if you do extra compactions ,you will go to this part base on the 10 base marks ) (the reduction will not more than 10) -2 did not use binary encode -2 did not combine the fileds.(left the delimeters among the first 4 fields) -2 did not compact year -2 did not compact the course code -2 did not compact the semester -2 change the variable length field to fix length field -1 variable length primary key (allow the empty section field be ignored) -1 remove string pattern (if you only repalce the "http://" and "mailto:",I will not take your mark. other replacements on the content such as "www.uottawa.ca" will be reduced) -1 Missing the empty field -1 replace empty field with white space or other character (only if you used the delimiters and replaced empty field with white space) -1 extra delimiters (if you put unnecessary delimeters) Option (-1 if you have assumption but too strong ) expected range between 10 and 20, where: 10 = basic design 20 = good design that includes course number and year represented as binary Program marks: ___/70 Testing diagnosis (TA chooses (X) one of the two below) ( ) Program doesn't compile or always crash when run Based on amount of code implemented and code style, your mark is ____ out of 25. guide: If your program can not be compiled in the public lab; or your program alway crashed; or your program can not give any correct search results and insert records correctly, or your program can only return several correct results(no more than 5 in the all three test files) I will give mark bask on can be compiled 5 marks; have a good class defination 5 marks; code amount 5 marks; code style 5 marks; can return some correct result 5 marks; ( ) Program compiles and run for at least one of the ouputs CORRECTNESS AND EFFICIENCY:___/65 initializations and finalizations (5 marks) -2 :no memory dynamic allocation: -1 :no memory release index creation (10 marks) -10 no index -5 index not in memory(if use a file for the index) -5 Did not use a dynamic array(if you use an arrary for index) -2 useing an index object arrary (unefficiency) -2 bad index design parsing of desired operations (10 marks) -2 reading whole file into memory -2 no error check (for the input of searching and insertion, if such error cause program crash,the mark reduced will be incresed to -5) search: index part (10 marks) -7 no linear search and sort (if redued by linear search, I will only reduce another 2 for without sort) search: datafile part (read and display) (10 marks) -2 reading whole file into memory -3 without output for search result -2 operating seekg and seekp in the wrong way -3 Did not mapping the search result(the search result miss infomation from orginal data) -2 after insert, an instantly search can not find the inserted record -2 serach result did not display as the orignal data insertion: appending datafile (10 marks) -2 insert duplicate record -2 new record wasn't appended at the end of file -2 after appending did not clean the fstream flag -2 confused SeekP and Seekg -2 using close file instead of clear flag -2 reopen file in every insert but did not close it -2 inserted record did not match orginal data insertion: modifying index (10 marks) -5 Did not Resize index: -5 did not resort the index or did not insert index item in order -5 Did not add the new item into index -5 recreate whole index -2 Resort the whole index STYLE mark:___/5 areas that need improvement: (the base mark is zero) -2 should return message after your operation -2 bad comment -2 huge code block (loop, and if-else) -2 bade class definition -2 meaningless varible name attention: (Base on the different cases, the mark may be a small difference. some very special error maybe not mention in this guide. The reason of reduction will be added after the mark)