Assignments by week:
Fall Term:
Winter Term:
Spring Term:
Monday, September 17
Description
Variable Declarations and Scope
Homework
Wednesday, September 19
Description
Conditionals
Homework
- What is the value stored in the variable x in each of the following? (Note, results may not be obvious!)
- int x = 79 % 12;
- int x = 12 / 5;
- int x = 35 / 7;
- float x = 15.0 / 2.0;
- float x = 65.0 / 4;
- int x = 250 * (4 / 5);
- float x = 250.0 * (4.0 / 5.0);
- Write a program that draws a new shape on the screen wherever
the user clicks the mouse. If the user clicks in the top half of
the screen it should be a square. If they click on the bottom half
of the screen, it should be a circle.
- Write a program that draws a circle at a random location on the
screen every time the user presses the mouse. The color of the
circle should alternate between red, green, and blue (that is, the
first should be red, the second green, the third blue, the fourth
red, the fifth green, and so on).
Thursday, September 20
Description
Review of Variables and Conditionals
Homework
Friday, September 21
Description
Trigonometry
Homework