|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
The
radio buttons and the text box of the GUI are the
|
|
|
means
of presenting input
|
|
|
v |
The
computation takes place when the OK is clicked
|
|
|
v |
Since
clicking a radio button, entering the text box
|
|
|
and
clicking the OK command button are “events”,
|
|
|
the
program can be developed by considering what
|
|
|
computation
is needed in response to each event
|
|
|
|
; |
Month
Radio Button -- set up the data for that month
|
|
|
|
; |
Day
Value Entry -- save the data for later
|
|
|
|
; |
OK
Command Button -- Determine the sign and print it
|
|
|
v |
How
is the sign determined from the month and day?
|