I became a little confused reading chapter 6 of our textbook, Using Decision Structures, because it wasn't clear to me why some of the topics were in this chapter. For example, the explanation of the mouse event handler at the end. But after reading the whole thing, I discovered that there is a good organization in the chapter. Here what I think it is:
- Decision structures in programming are all about how the sequence of execution of program statements. And event driven programming is a fundamental way to change that sequence.
- Inside the blocks of event code, the next level of statements that you can use to control the sequence of statements includes the traditional decision statements like If-Then-Else and Select Case. This is what the book shows you next.
- To put both concepts together, an example of an event handler that includes an If-Then-Else decision structure caps off the chapter at the end.
Rather than following the exact organization of Chapter 6 in the book, I'm going to present things this way:
- An explanation of some new things that you should know about the syntax of decision structures.
- The relationship of If-Then-Else structures to Select Case structures is discussed.
- An example showing how the tax rate program can be done as an If-Then-Else structure or a Select Case structure is explained. This example isn't included in the sample programs on the CD ROM with the book, so you have to see it here!

