Computer Science 252
Problem Solving with Java
Fall 2013, The College of Saint Rose
Agenda
Modify the "Mouse Droppings" example so blue circles are placed along the mouse's path while the mouse is being dragged on the canvas in addition to the red circles that are already placed there when the mouse is moved on the canvas.
Please submit only the file MouseDroppings.java in Submission Box under "InClass2" before you leave class.
Due at the start of class, Tuesday, September 17.
Please submit answers to these questions in Submission Box under "LA2" by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted.
A little review from your previous Java experience here...
a. The red component for a Color to be constructed.
b. A student's GPA.
c. The home team's current score in a baseball game.
d. The outline of a rectangle that represents the trunk of a tree.
e. A piece of text displayed on the canvas that contains instructions for how to play a game.
int x = 7; int y = -3; int z = 1; double a = 7.5;
a.
x - z > y
b.
x/2 + y
c.
x/2.0 + y
d.
a/2 + z
e.
a + x * y + z
f.
!(x > z) && (a + x + y + 12 < 32) && (a * a * a / 4 == 12)
g.
true || (x * y * z / a < 11)
Examples