Define the variables dx and dy in the same place you have defined all the other variables.
Where does your code form a triangle? I only see where it draws a line.
Type: Posts; User: Norm
Define the variables dx and dy in the same place you have defined all the other variables.
Where does your code form a triangle? I only see where it draws a line.
Do you have any specific questions about your assignment?
One change you should make to your code is move move the drawing to after the the values of x4, and y4 are computed and only do it once...
What do you expect the program you have written to do?
The only thing I see it doing is that it draws a String and a line in three different places.
What is not working about that String and that...
Where are the variables: dx and dy defined? The compiler can not find them in scope where they are used in the code.
You have many locally defined variables with those names. Their definitions go...
Please explain.
Post the full text of the error messages here.
Please Edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting