|
Homework #3: LineLength. Create an Java applet that will draw a line from coordinates that the user chooses.
The user will be asked for four integers via Input Dialog boxes. The
input dialog boxes should display what numbers have already been selected
by the user as they ask for the next one.
|
||||||||||||||||
| A right triangle will be drawn, linking the coordinates that
the user specified, as well as the coordinates for each corner of the triangle.
In addition, the length of the line will be displayed in the status bar
of the applet window. You must use your own programmer-defined method
to calculate the length of the line. |
||||||||||||||||
|
Think of the user when designing the Dialog Boxes: is it obvious to the user what he/she is supposed to do? Is it obvious what the items displayed in the applet window are for? Use proper style conventions in your source code. Suggestions & Hints:
|
||||||||||||||||
|
Turn in a printout of your source code and a diskette with the java file on it. Name the Java program with your last name and first initial and the number "3". Capitalize the first letter of your last name and the first initial. EX: BookA3.java Grading criteria:
|
||||||||||||||||
|
all rights reserved. copyright 2000, Ann Book |
||||||||||||||||