Grading Guidelines for hw5 ============================================================== Problem 1a. 10 points -5 if they put it all within main, without writing a DotProduct function. Test on a few cases, such as: % /html/courses/cse110/hw5p1a enter an integer n: 4 enter A[0] of vector A: 1 enter A[1] of vector A: 2 enter A[2] of vector A: 3 enter A[3] of vector A: 4 enter B[0] of vector B: 1 enter B[1] of vector B: 2 enter B[2] of vector B: 3 enter B[3] of vector B: 4 the dot product is 30 ============================================================== Problem 1b. 30 points The problem didn't say that they had to use their DotProduct function part a, so it's okay if they didn't. -10 if they did it all within main, w/o writing a function MatrixMult. Test it on a few cases: % /html/courses/cse110/hw5p1b enter an integer n: 2 enter A[0][0] of matrix A: 4 enter A[0][1] of matrix A: 3 enter A[1][0] of matrix A: 2 enter A[1][1] of matrix A: 1 enter B[0][0] of matrix B: 4 enter B[0][1] of matrix B: 3 enter B[1][0] of matrix B: 2 enter B[1][1] of matrix B: 1 22 15 10 7 % ============================================================== Problem 2a. 10 points -5 if they didn't put the '\0' at the end of the array It's okay if they had the function return the effective length of the array, although it's not necessary. ============================================================== Problem 2b. 10 points -5 if it only works on even length words but not odd length words -5 if it only works on odd length words but not even length words it's okay if they added a parameter to reverse to take in the effective length of the array, although it's not necessary. ============================================================== Problem 2c. 20 points It's okay if they added parameter to LexOrder to take the effective lengths of wordA and wordC, although it wasn't necessary. -10 if it doesn't handle properly the case of words in which one is a prefix of the other: % /html/courses/cse110/hw5p2c enter a word: abc enter a word: abcd abc comes before abcd % /html/courses/cse110/hw5p2c enter a word: abcd enter a word: abc abc comes before abcd test on a few other cases. ============================================================== Problem 2d. 20 points full credit if they wrote the function correctly, but it doesn't work because of erros in their LexOrder or Reverse functions.