In this program you are going to create a 1000 pixel wide by 700 pixel high picture and draw a ball (circle) with a diameter of 100 pixels moving across the picture from left to right. When the right edge of the ball "hits" the right edge of the picture it should move back to the left edge. When the left edge of the ball "hits" the left edge of the picture it should move to the middle. Then it should go up and then down the screen to the bottom. When its finished the ball should turn red.
To see how your program should work you can run my version by double clicking on My Computer and going to the folder T:/Harcourt/Fall2008/CS140/HW4
and then double click on the file run.bat
.
HW4
and that the file is named
HW4.java
.
HW4.java
file to the T: drive in your student
folder. Please do not e-mail me your file as an attachment any longer.
Edit -> Select All
and going to
Edit -> Indent Lines(s)