Java+Lab+1

Due Thurday, September 22



DrJava, click to open a FOLDER, and navigate to the "Java Lab1" folder you just created. Open the FOLDER. Press the "Compile" button, and make sure the code compiles correctly.

1. Insert code to draw the Target symbol shown below, in a drawing window. Once you've compiled your code successfully, test it by clicking on the "Run" button at the top of DrJava.

2. Insert code to draw the simple traffic light shown below, in a drawing window.

3. Insert code to create the following images:

BONUS - Insert code to draw a pentagon. Can you set up the 5 points so it draws a star instead?

UPDATE! My Hand In Box is working!!!!!!! NEW DIRECTIONS: 1) Do NOT change the name of any FILES! 2) Please rename your folder: Java Lab 1.flast (where f is your first initial and last is your last name) 3) Drag and drop the FOLDER into Mrs. McLead's Hand In folder.

If, for some reason, you cannot access my Hand In Box, try doing this: 1) Create a folder, and label it Java Lab 1.flast (where f is your first initial and last is you last name). 2) Compress the folder (see a classmate for help). 3) E-mail me the comressed folder, kmclead@wssd.org.

Helpful Links: Quick Color Chart [|Serious Color Chart]