set counter K to 0 repeat { if a number has been entered (from the keyboard) { store in A[K] and increment K if K equals 2 print A[0]+A[1] and reset K to 0 } }
It's a program that waits until something happens and then performs a set of operations. Common events include you clicking on a mouse, moving a mouse over/out of some object on the screen, moving a...
Control driven means you have the full control of when, where, which, what, and how, both from the source and the target. You would know when a certain step should be taken at a certain point. Event...
There are two major categories of programs which utilize event-driven method of their implementation: device drivers and GUI programs. Both spend most of their life cycle in waiting loop and perform...