CS 101 - 9/8/11 Basic Input SimpleInput class SimpleInput.getIntNumber () returns a value We use an assignment statement to store the returned value into a variable so our program can uses the value entered by the user. int value1; value1 = SimpleInput.getIntNumber("Enter an Integer"); Chapter 3 in the Text Turtle Drawings - we get to control a turtle with a pen attached to its back to draw some pictures. Step 1. Create the world for the turtle World w; // create the memory for the world w = new World (); // initialize the memory space Step 2. Create the turtle to live in that world Turtle t; // create the memory for the turtle t = new Turtle (w); // initialize the memory and specify // the world where the turtle will // exist Basic Turtle Operations forward(int pixels); forward(); // move forward 100 pixels turn (int degrees); // rotate clockwise turnRight(); turnLeft(); setPenWidth(int thickness); setPenColor (Color c); // Color is defined in a // standard Java library