Midterm Exam 1 Review Fall2005

Below are questions like those I plan to ask on Midterm #1 (Sept. 23). The exam will consist of 4 or 5 questions like these.

Please do try these questions! Post your answers, questions, comments, concerns, and criticisms on the pages for each question. Those comments, questions, etc. can also be about each others' answers! If someone posts an answer that you don't understand, ask about it! If you see a question here that you know the answer to, don't keep it to yourself – help your fellow students!

I will be reading your answers. Here are the ground rules for the interaction.

If you don't post, neither will I. I will not be posting official solutions to these problems at all! If one of you gets it right, terrific!

I will try to always point out if an answer is wrong. I won't always point out when the answer is right.

I am glad to work with you toward the right answer. I will give hints, and I'm glad to respond to partial guesses.

Make Boxes with Turtles

Below is the turtle drawing example from class. Write a TurtleBoxes class with a main() method that draws THREE boxes, one 100 pixels per side, one 150 pixels per side, and one 200 pixels per side. The boxes should overlap (like screenshot below). Be sure to create a canvas (Picture) of 500,500 and a Turtle to draw on that canvas.