CSCI 101 HW2 grading notes 30 points total Overall: - must have name and lab section in a comment at the top (-1 point) - each function must have docstring (-2 point total) - submitted code must compile and run (-5 points) - executed program must produce NO OUTPUT (-2 points total) - our test script must run without crashing (-3 points) Error messages: - each error message worth 1 point aspectRatio: - use an if-statement to test whether height is 0 (-1 point) - use return, not print (-1 point) - returned value should be a floating point number (-1 point) flip: - must work correctly, following instructions (up to -5 points) lastWord: - must work correctly, following instructions (up to -5 points) Challenge: - up to 2 extra points if all test cases are correct - 1 extra point if some challenge test cases are correct Testing code we will run on all submissions (NOT to be included in submitted code -2): print("aspectRatio(3, 4) = ", aspectRatio(3, 4)) print("aspectRatio(2, 3) = ", aspectRatio(2, 3)) print("aspectRatio(6, 0) = ", aspectRatio(6, 0)) print("flip(123) = ", flip(123)) print("flip(700) = ", flip(700)) print("flip(5) = ", flip(5)) print('lastWord("Good morning, sunshine") = \'' + lastWord("Good morning, sunshine")+"'") print('lastWord("a b c d e") = \'' + lastWord("a b c d e")+"'") print('lastWord("Daisy") = \'' + lastWord("Daisy")+"'") print('lastWord("can do punctuation!") = \'' + lastWord("can do punctuation!")+"'") print('lastWord("more punctuation!?.") = \'' + lastWord("more punctuation!?.")+"'") print('lastWord(\'even "double quotes"\') = \'' + lastWord('even "double quotes"')+"'") print("lastWord('spaces at the end ') = '" + lastWord('spaces at the end ')+"'")