Grading for exam3 for 11:00 section --------------------------------- Paper part Note: I gave credit for showing work if I could find it somewhere on your paper, even if it wasn't circled, etc. 1a) 2.5 points total. -.5 if a single minor error (e.g., thinking -1 < -2) -.5 if did bubble sort instead of selection sort and did it correct. -1 if did some combination of bubble sort and selection sort, or did bubble sort but did it wrong. 0 if you didn't show any work. Note: -2 is < -1. 1b) 2.5 points total. If you made a mistake on just one letter I didn't take off. -.5 you shifted left by the wrong amount, but did it correctly. If you were shifting left, it should have been by 6. -.5 if you shifted left by 20, or right by 6. -.5 if correct but no work shown. -2 if there was some work shown, but not doing the correct algorithm, or completely not clear what was going on. 1c) 2.5 points total. -.5 if you used D=14, should be D=13. -.5 if multiplied by 15 instead of 16. -.5 for each careless arithmetic mistake -1 if correct but no work shown. -1 if correctly converted to binary, not to decimal. -1 if some part of your thinking was correct, but messed up part of it. -1.5 or -2 if much more wrong but some small thing credit can be given for. Note: you've got to be able to do basic arithmetic without making lots of mistakes. 1d) 2.5 points total. -.5 if did everything correct but didn't actually say if it is prime or not. -.5 if said each remainder was != 0 without actually computing or giving what they are. -1 you correctly gave remainders for each number up to sqrt, with all != 0, and then said it's not prime. -2 if you only tried dividing by 2, or didn't do any divisions and did something strange. -2 if correcty answer (not prime) but didn't have any work. 2a) 4 points total. -1.5 if one of x, i, total correct but not the other two. -1 if values correct until x==0, but didn's stop the loop there. -2 if had initial values correct and at least one of the variables for the second iteration -1.5 if had first few iterations correct and then not. -1 or 1.5 if just doing one thing wrong in updating the values that causes everything to be off. 2b) 3 points total. 1 point for getting the initial values in the f1 function correct (x=2, y=3, temp=2) 1 point for getting the initial values in the f2 function correct (z=3, w=2, temp=2) 1 point for everything else, and ending up with the correct values for things in main (everything is 3). -3 no actual values on the paper. 2c) 3 points total. -1 had everything correct after first for loop but messed up the second one. -1.5 completely correct sequence of values for i, but mistakes on msg. -2 correct values for i on the first loop, but not for anything else. -2.5 final value of i correct, nothing else is. ------------------------------------------------------- Computer Part Note: there should be a file grade.txt in your exam3 directory with what you got for each part. If you did not take the computer test, there is no grade.txt file, and you just got a 0 for it. 20 points total. 1a/1b 10 points -6 Something that was a start, may or may not compile, doesn't have the if that's needed for 1a, but isn't "crazy". -4 Logic for if test and while loop is wrong, but the if and/or while is there and does something. -1 if correct but have user enter 0/1 rather than yes/no. 1c 2 points -.5 or -1 if loop logic is not right (amount depending on how close) 1d 2 points -1 if something that compiles and is half way through-ish to being done. 1, any part -.5 for strange logic that may or may not make the program not work, but certainly isn't good. 2a/2b/2c 6 points 3/6 if one of them is right 5/6 if two of them are right 6/6 if all three Note: remember that something in quotes is treated as text. To check of a variable is equal to the value "yes", you have to use the quotes. Otherwise, the compiler thinks you mean a variable called yes. Note: remember that you need to have a complete Boolean expression on either side of an || or &&. To test if x is 3 or 5, you need x == 3 || x == 5.