Testing: -given files (marks are deducted according to the following situation. Deduction up to 3 marks) -1 the primaryindex is not correct, i.e. some records are missing. last record is not correct. the smallest record are not inserted correctly. -2 crash during searching -1 the last record is searched twice) -1 the searching returns wrong results for less than 4 records -2 the searching returns wrong results for more than 4 records -2 no search results returned -1 the searching results are not correctly output, i.e. not return the whole record, but only half of the record -1 the offsets in primayindex are not in binary mode -1 the offsets are not correct -test with modified datafile (marks are deducted according to the following situation. Deduction up to 2 marks) -1 the primaryindex is not correct -1 crash during searching -1 the last record are searched twice -1 the searching returns wrong results, no search results returned -1 the searching results are not correctly output -1 the offsets in primayindex are not in binary mode -1 the offsets are not correct Style: -1 no comments -1 code not understandable If Program runs without crashing, you will get maximum 40 marks -index creation (marks are deducted according to the following situation. Deduction up to 5 marks) -5 index file is not created properly -index addition (marks are deducted according to the following situation. Deduction up to 20 marks) -5 the program couldn't handle the situation when inserting a record which has smaller student number than the first record's student number) -5 insertion is not correct. i.e. data is not inserted into the index. shifting records that have larger student number to the next position is not correct. the smallest record is not handled properly -5 index is not sorted -4 sorting is not correct -12 use array to do addition -2 the program couldn't handle the last record properly -4 the offsets are not generated correctly -2 the offsets are not in binary mode -2 the offsets are not correctly converted to binary mode -searches (marks are deducted according to the following situation. Deduction up to 10 marks) -1 the last record is searched twice) -5 the searching is not correct. -3 the search function is OK, but didn't seek to the right position to print out the records -2 the search function is OK, but the records are not handled properly -2 the search function is OK, but the function doesn't return the search results -2 not binary search -2 the records are not properly output -other functionality, main processing (marks are deducted according to the following situation. Deduction up to 5 marks) -1 have more than one main program -1 couldn't get file from console If Program runs with crashing, you will get maximum 20 marks -index creation (marks are deducted according to the following situation. Deduction up to 2.5 marks) -2.5 index file is not created properly -index addition (marks are deducted according to the following situation. Deduction up to 10 marks) -3 couldn't handle the situation when inserting a record which has smaller student number than the first record's student number -4 index is not sorted -3 sorting is not correct -3 insertion is not correct. i.e. shifting records that have larger student number to the next position is not correct -7 use array to do addition -2 didn't check if the record is already in the index -2 the offsets are not generated correctly -1 the offset is not in binary mode -1 the offsets are not correctly converted to binary mode -searches (marks are deducted according to the following situation. Deduction up to 5 marks) -5 no search -3 the searching is not correct -2 the search function is OK, but didn't seek to the right position to print out the records -1 the search function is OK, but the records are not handled properly -1 the search function is OK, but the function doesn't return the search results -2 not binary search -1 the records are not properly output -other functionality, main processing (marks are deducted according to the following situation. Deduction up to 2.5 marks) -2 lots of syntax error in main program and classes -1 have a few syntax error -1 couldn't get file from console -1 have more than one main program