Computer Science 120
Introduction to Programming
Spring 2012, Siena College
Lecture 3: Conditionals and Numbers
Date: Tuesday, January 24, 2012
Agenda
- Announcements
- Lab 1 this week
- you will know what you need to know by the end of class
today
- Programming project 1 coming soon
- Tutors are available starting tonight in RB 350 - use them!
- Textbook situation
- Lecture assignment 2 recap
- Recap of key ideas from last time
- basic framework of a Java class that "extends WindowController"
- comments
- begin and onMouseXXX methods
- objectdraw graphics primitives
- setColor method
- move method
- variables and assignment statements
- accessing the mouse location through the "Location
point" parameter
- Terms: class header, class body, method, method header, method body, formal parameters, object construction, instance variable
- Remembering information between events
- Counting events
- Named constants
- Conditional execution
No New Lecture Assignment
Nothing for Thursday. Concentrate on the lab.
Examples