need variables to re member if each question has been an swered:
q1Answered
,
q2Answered
, etc. As you begin to un derstand this example, you might think of
other things that you want to remember. In a
later example in this chapter, we
will keep track of not only which questions have been an swered but also what
those an swers were. If you want to try to go be yond the examples in this book,
remember that you can create as many vari ables as
you want to keep track of as
many things as you want.
To al low students to re visit ques tions as many times as they want, you will
have to al ter your ques tion slides to in clude but tons
that move to the next and
previous slides, as in Fig ure 7.2.
Figure 7.2. Ques tion Slide with Next and Previous But tons
The other change to your slides will be to tie your right and wrong an swer
buttons to new pro cedures. We will need a new pro cedure for each ques tion’s
right
and wrong answers, rather than one pro cedure for all right an swers and one
for all wrong an swers. These spe cialized procedures will check the vari ables
(
Do'stlaringiz bilan baham: