Computer Science 252
Problem Solving with Java
Fall 2015, The College of Saint Rose
Lecture 10: Lab Session
Date: Thursday, October 1, 2015
Agenda
- Announcements
- I am away at a
conference until Monday night so
today's class meeting will be a lab session. Sai will be here
to help. Please take advantage of the time unless your labs are
all complete before then.
- Exam 1 is a week from today, during class
- topics covered are up to custom classes and the memory diagrams from Tuesday
- keep looking at the practice exam questions, sample
solutions will be made available outside my office door
- optional review time Wednesday at 8:30 PM in AH 205
- Lab 6: Irate Ibises due tomorrow night
- Today's tasks
- Complete the in-class assignment shown on the previous
lecture page where you enhance the TShirt objects.
- Complete the new in-class assignment below.
- In-class Exercise 10 - (20 lecture assignment
points) due before our next class.
Write a program that allows the user to interact with two robot heads
that look something like this:
Your program should have a custom class called RobotHead that
represents one of the heads, and a WindowContoller class called
RobotHeadGame that manipulates the robot heads as follows:
- When the game starts, the robot heads are created at two
arbitrary locations on the canvas.
- The robot heads are draggable, and while being dragged, their
mouths open a little wider. When the dragging ends, they go
back to their normal dimensions.
- When the mouse moves over a robot head (not a drag, a regular
move), the robot head's eyes disappear. When the mouse moves off
the robot head, the eyes reappear.
Please demonstrate your program or
submit your Java files by email before you leave class. Email submissions should use a meaningful
subject line, clearly indicating the course number and assignment
name.
No New Lecture Assignment
However, the in-class exercises are kind of like lecture assignments.
You should also be working through the practice exam questions.