|
Unlike other homework problems, HW 5.6 does not give us a code stub to show where we are to write our new contribution. Instead, previously developed code is given (active, in a black font) followed by comments and then an active example of a correct execution. We are asked to create a new procedure and then modify the old code. Are we permitted to do this above and within the given old code, or will the grader require that our answer be developed at the end of the file (overriding the previous definitions)? Also, are we to remove the active test case that is given? From past experience, it seems likely that having its print statement active could cause the grader to object. Then again, removing the print statement could cause the grader to object. Official clarification, please? |
|
The grader doesn't care about any test cases. That was only an issue with homework 1. Appending the new function definitions to the end of the file will probably work but you should just change the existing definitions. Does that answer your questions? 2
I think so. We are free to replace/rewrite the originals rather than override them. I will do that, with my new procedure defined above all of the old code. Since the grader doesn't care about test printouts, I will delete them before submitting, just to be safe. Once burned, twice shy; and old habits die hard. Or "old cows follow old paths," as my wife from Malaysia says. "Be careful what you put in your head, because you will never get it out." My approach - work in my local editor/interpreter, copy my new functions over the ones in the online interpreter (after 'Reset'), run and check, removed the test cases and check, submit. Is that a fairly sensible approach? There is a pretty non-trivial discussion about the test cases going on here - http://www.udacity-forums.com/cs101/questions/45425/question-about-submittng-homework-56-and-57 I haven't gotten to this problem yet (and I probably won't). I'm just trying to stay in the conversation so I can maybe pick up crumb or two. |