Assignment statements, one instruction event handlers

This assignment tests your ability to write programs with assignment statements in one-instruction event handlers.

Begin by carefully reading the handout on assignment statements. You might warm up by writing the bilingual greeting program used there, but you do not have to turn it in.

Write a program that does the same thing as this program.

Before you start to program, answer the following questions:

  1. How many objects are there in the user interface?
  2. What names are you going to give each of them?
  3. How many events must your program handle?
  4. What are those events?
  5. How many event handlers must you write?
  6. What does each event handler do? (In English)
  7. What does each event handler do? (In Geek)

When your program is exactly the same as mine, print a screen shot and listing and turn them in along with the answers to the above questions.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.