Question: Purpose This assignment introduces you to the acm.graphics package which we will be using to create graphics and animation. You'll see an example and then


Purpose This assignment introduces you to the acm.graphics package which we will be using to create graphics and animation. You'll see an example and then modify it to create shapes on the screen where the user clicks. This code practices math operators and if logic.

2 Program Description Modify the StampIt.java file to do a program that draws graphics on the screen as the user clicks.

Your program will: center the rectangle at the (x,y) point where the user clicked

display a different rectangle fill color in each of the four quadrants prevent the rectangle from going off the edge of the screen 3 Style Requirements for all Projects Use comments at the top that list your name and a program description Use comments to describe variables Use comments to describe major computations Code within a block { } is indented Page 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!