CIS 110 (11fa) final grading notes 1-4: each part was worth 1 pt with no opportunity for partial credit. 5: -5 for each of the following errors: + Checking i % 15 as the last if-clause rather than the first. + Using System.out.println rather than System.out.print + Setting characters by column instead of row -2 for each of the following errors: + Forgetting the final System.out.println + Miscellaneous, random errors 6: -1 or -2 per unique syntax error, e.g., + Forgetting to define a variable + Setting an int as a String + Using = instead of == Up to -5 if there exists a severe error while looping through files + Not using while.hasNextLine() + Not constructing the scanner on the right thing + Not incrementing a 'line' scanner + Loop not existing + Returning insode of loop + (-3 if it was a return only on the 0 case) Up to -5 for bad token handling (-2 for each occurrence) -5 for incorrect conditional logic, no exceptions (not as in symbols) but as in if they didn't know what they were testing -3 For defining the numWins variable inside of the loop -1 for incorrect header 7: The primary things for which points were taken off: -2 for not returning a null array when arr is null -2 for not returning a new array of length 0 when arr is the empty array -1 if arr is returned instead of a new array -1 for not inserting the last word of the array or over-inserting into the array -4 if an array of the incorrect size is made Attempts at the problem that were generally incorrect beyond repair received 6-8 points. 8: Individual methods were assigned points as follows: Constructor: +4 getMove: +6 getFoodtype, getSpeed: +2 getColor, toString: +3 Points were subtracted off of each method based off of the number of mistakes made and severity of those mistakes. 9: Part (a) was 15 points. +1 header +3 correct if statement (3 conditions) +1 return =1 using random +1 random with len +1 rand.nextInt(len) +k +3 using a temp variable, using the array, and using k as the index +4 for correct swap Part (b) was 10 points. +1 correct header +1 correct if condition +1 correct return +1 new Random object +1 for using loop +1 calling swap random +4 for each arg in swapRandom