Page 69 -
P. 69

test drive



                     Test Drive






           So, what happens when you run the new version of your program?












                                                    The program keeps asking for
                                                    another guess for as long as you
                                                    keep getting the answer wrong.


                                              The correct answer is now a random
                                              number and it should be different
                                              each time you play the game.


                                          The program stops when
                                          you get the answer right.







                                                 This game‛s pretty cool.
                                                 No matter how many
                                                 times I play it, I still have
                                                 to think to get the right
                                                 answer!


          Your users love the program.
          And you created it all yourself. By carefully analyzing the problem,
           deciding what the feedback needed to be, and working out the intricate
           looping and branching logic, you’ve created something that really rocks.


           Well done. You’re on your way to becoming a real code
           jockey.

           34    Chapter 1
   64   65   66   67   68   69   70   71   72   73   74