Write a program that displays a rectangle. You can point the mouse inside the rectangle and drag

Question:

Write a program that displays a rectangle. You can point the mouse inside the rectangle and drag (i.e., move with mouse pressed) the rectangle wherever the mouse goes. The mouse point becomes the center of the rectangle.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: