Introduction to problem solving with applications by James Tam Return to the course web page

Programming Part V: Events

Program description

Download

Example 14: A program that shows traditional instructions and event specific instructions (mouse, keyboard)

First event example

Example 15: Registering specific key presses (expanding, shrinking coach)

Specific events

Example 16: Program implements random reactions to events (cat can be properly petted: body, or improperly petted: head)

Random reaction to events

Example 17: Monitoring unusual events e.g., changing of a variable

Change to a variable

Extra example (not in notes): creating customized 'him'/'her' people that come with realistic looking expressions/mannerism methods

Extra