

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Recitation Guide Wednesday May 23, 2007
A. Handle Installation Issues a. If necessary, quickly run through how to set up Dr. Java. b. Try to handle individual issues as quickly as possible. If necessary, employ the help of students to help out with a general walkthrough. B. Quiz 1 a. Feedback. b. Comments on length, difficulty level, preparedness going in. C. Homework 2 and introduction to Turtles a. Homework 2 is due on Friday. TSquare is still in the process or being set up. Email will be our backup method. b. Go through Homework 2’s assignment description answer any questions. Teach students how to use FileChooser.setMediaPath("C:/cs1316/MediaSources/“); and FileChooser.getMediaPath("swan.jpg"); i. Remember that the MediaPath needs to be set ONLY ONCE on a computer. Please tell students how the inclusion of FileChooser.setMediaPath() in homework is incredibly annoying for grading homeworks. c. World and Picture canvas i. Remember that Turtles need to be given either a World or a Picture (blank or not) to play in! ii. //Turtles default to invisible World w = new World; iii. //Turtle default to visible Picture canvas = new Picture (500,500); iv. //Turtles default to invisible Picture swan = new Picture(FileChooser.getMediaPath("swan.jpg")); d. Turtles i. World w = new World(); Turtle t = new Turtle(w); t.setVisible(true); //set t to be visible ii. See TurtleSquares.java for a good example of how to use Turtles to draw boxes. iii. Other useful methods in SimpleTurtle.java