PPT Slide
- The program’s main algorithm governs the flow of control throughout the program
“do step A, then do step B, then do C or D, then…”
Event-driven programming:
- The program waits for the user to do something, processes that event, then waits for the user again.
- The general model:
loop
get user event
process user event
do something that responds
to that event
endloop