Pretty lost with making a this small program.
in
Programming Questions
•
1 year ago
Basically I have to write a program where its divided into quaters and once the
program starts, a ball is displayed in the centre of one quadrant. The ball has a fixed
radius but a randomly set color. Then I can click the ball and drag it to a different quadrant. The ball is displayed when being dragged. The destination quadrant is the one where the mouse is released. The ball is displayed in the centre of the destination quadrant with a new randomly set color.
I understand what needs to be done on paper I just have no idea how to go about it. My methods for defining class Ball didnt work and ive been stuck ever since.
Thanks for any help.
1