The Magic 8 Ball. Choose your own set of silly "answers" for the 8 ball to provide. To Use: - Click the 8 Ball. - Type in your question. - The ball says a random line from the "Answers" list Continue until bored. There is a "basic" version and a "fancy" version. This illustrates a good way to develop your code. First, get the basic mechanism working, then add frills later.
This is a modified subset of an example developed by Len Erickson and improved by Deb Pierce. Just trying to simplify and get to the essence, which is the use of LIST variables and the RANDOM function. The goal is to help 6th and 7th grades understand and appreciate these two concepts. Also shows a "start with the basics, then evolve" approach to program development.