Computer Science, asked by selin1699, 6 days ago

JAVA Programming
STEP 1: We want you to draw the shape shown in the appendix and show whether the mouse is inside or outside the drawn shape.
In the upper left corner, the mouse coordinate will be printed according to our own coordinate system.
The center of the big circle should be (0,0) point, the radius should be 2 units, the small circle center should be (-1,0) point and the radius should be 1 unit.
The inside of the circle should be hatched with lines.

STEP 2: Move a shape you want within the window you have created.
When the shape touches the boundaries of the window, it moves in another direction randomly and stays in the window continuously.

Answers

Answered by neev76
0

Answer:

JAVA Programming

STEP 1: We want you to draw the shape shown in the appendix and show whether the mouse is inside or outside the drawn shape.

In the upper left corner, the mouse coordinate will be printed according to our own coordinate system.

The center of the big circle should be (0,0) point, the radius should be 2 units, the small circle center should be (-1,0) point and the radius should be 1 unit.

The inside of the circle should be hatched with lines.

STEP 2: Move a shape you want within the window you have created.

When the shape touches the boundaries of the window, it moves in another direction randomly and stays in the window continuously.

Similar questions