Sample Programs

To open a sample program, click on the blue link.
Ask Name and Age Asks the user to type in his name and ageInput/Output
Random Rectangles Draws lots of rectangles at random positionsGraphics
Move the Dog Move a dog around the screen by typing N (for North), S (for South), E (for East) and W (for West)Input/Output, Graphics
Drag the Circle Click the mouse to drag a circle around the screen. Click button 2 and it draws a line tooMouse, Graphics
Draw Letters Draws the letters you type on the screenKeyboard, Graphics
Draw with Plus Sign Draw a picture with the arrow keys. Kind of like Etch-a-SketchKeyboard, Graphics
Gravity Ball With the mouse button, you control the black ball. The yellow ball is attracted to the black oneMouse, Graphics
Look Out! Catch the falling balls with the paddle. Keep catching more than half of them to get to the next level.Keyboard, Graphics
Square Color Wave Draws a pulsating wave of colorGraphics