Class #19 preview:
Raindrops
keep filling up the collector and falling on my head.
Example helpful for understanding the public
onBallHittingBottom()
method techniques and issues for your Boxball class,
and how the Ball class could call it. Hopefully,
this will be clear after you study THIS
example. Look at this ahead of time.
Review of class #18 and chapter 5 is useful too, as this is
a development of the DropCollector and the FallingBall classes
from pages 156-157 of the book.
Here is
an example that uses a dialog
box to gather input from
the user, then uses standard String processing and while loop
techniques to print your favorite movie in a triangular pattern,
using the Courier New font.
See a Boxball game that does not produce correct output.
"Hey, I Made that Shot!"
Boxball game, with some added features like randomly sized
ball objects, and the 10 second pause() before doing the hide()
method action.
Boxball game: Lab 5 at 5 p.m. is
okay. Lab 5 by 9 a.m. or 10 a.m. isn't required.
Also important information about midterm EXAM.
EXAM WEDNESDAY: while loop and Color and FilledRect practice question
and exercise.
To be solved in Monday
exam review, but try to solve it yourself FIRST, at least the simpler
version. Can you solve this without looking at the book or lecture notes
or blue sheet? Try to simulate the closed book test conditions and test
your memory and understanding of the while loop pattern.
Midterm exam outline of topics and practice
questions is still in progress.
Solution to while loop RED rectangles problem:
while loop exercise
has 5 staggered red rectangles.