Computer Science 252
Problem Solving with Java
Spring 2016, The College of Saint Rose
Lecture 10: Repeated Graphical Components; Introduction to Active Objects
Date: Thursday, February 18, 2016
Agenda
- Announcements
- Exam 1 is a week from today, during class
- topics covered are up to custom classes and memory diagrams
- practice exam questions out, sample solutions will be made
available outside my office door early next week
- optional review time Tuesday 2/23, 6 PM in Albertus 110
- Lab status:
- Robot heads recap
- Memory diagram description in active objects notes
- Using loops with graphical objects
- Introduction to active objects
Lecture 10 Assignment
Due at the start of class, Tuesday, February 23.
Please submit answers to these questions
either as a hard copy (typeset or handwritten are OK) or by email to
terescoj AT strose.edu by the start of class. Please use a clear subject line
when submitting by email (e.g., CSC 252 Lecture
10 Assignment, Mary Smith). We will discuss these
questions at the start of class, so no late submissions are
accepted.
Write a loop that would draw the following "staircase" on the canvas
(5 points):
Terminology
- repetition
- while loop
- for loop
- infinite loop
- passive objects
- active objects
- thread of control
Examples