Docsity

Debugging Assignment: Fixing Errors in BrokenSuperTurtle Code, Assignments of Computer Science

Toggle sidebar
bg1
Mini Bonus HW2: Fix the Buggy Code! (20pts)
DUE DATE: March 21 7pm
You will be given a file called BrokenSuperTurtle that you must debug. There are roughly 20
errors or so in the assignment. The final picture should have twelve turtles and look something
like the pictures below.
NOTE: Everyone’s final image will look slightly different because Math.random() is used.
You will be submitting a fixed file called SuperTurtle and a notepad file that documents each
error you fixed. This does not mean copy and paste the errors from the compiler, but to write
down what you did to solve the errors. Do not submit a file that just says, “There were errors
and I fixed them,” because doing so will only get you a zero.
On that note, this is an all or nothing assignment. Either the code you submit works and you get
full credit, or it doesn’t and you get no credit. The same applies to the text file: don’t submit
random fluff, but something like:
There was a missing semi colon on line 2.
I added an extension to Picture
The conditional statement should have been <= instead of <
We are not asking you for a graduate dissertation, but we should be able to use your text files
as a set of directions so that someone who has just sat down to look at the code can read your
document and follow your directions to make the file work properly.
What to Turn In
SuperTurtle
Notepad file documenting each error and how to solve them
Where to Turn In
T-square

Partial preview of the text

Download Debugging Assignment: Fixing Errors in BrokenSuperTurtle Code and more Assignments Computer Science in PDF only on Docsity!

Mini Bonus HW2: Fix the Buggy Code! (20pts)

DUE DATE: March 21 7pm

You will be given a file called BrokenSuperTurtle that you must debug. There are roughly 20 errors or so in the assignment. The final picture should have twelve turtles and look something like the pictures below.

NOTE: Everyone’s final image will look slightly different because Math.random() is used.

You will be submitting a fixed file called SuperTurtle and a notepad file that documents each error you fixed. This does not mean copy and paste the errors from the compiler, but to write down what you did to solve the errors. Do not submit a file that just says, “There were errors and I fixed them,” because doing so will only get you a zero.

On that note, this is an all or nothing assignment. Either the code you submit works and you get full credit, or it doesn’t and you get no credit. The same applies to the text file: don’t submit random fluff, but something like:

There was a missing semi colon on line 2. I added an extension to Picture The conditional statement should have been <= instead of <

We are not asking you for a graduate dissertation, but we should be able to use your text files as a set of directions so that someone who has just sat down to look at the code can read your document and follow your directions to make the file work properly.

What to Turn In

 SuperTurtle  Notepad file documenting each error and how to solve them

Where to Turn In

 T-square