If you are not familiar with the Magic 8 Ball toy then watch this video to see how it works. Your job is to replicate this toy as an app. Your user interface should look like this:

For this app you will need to create a list of at least 8 (since it is an 8 ball) possible answers that the app can display when the user clicks the Get Answer button. Wikipedia has a list of 20 possible answers and you can come up with some of your own. Be sure you have a mix of positive, neutral and negative answers.
Programming the App.
1. Create a new global variable that is a list of the answers for the app. What would be a good name for this global variable?
2. Program the button so that when it is clicked it chooses a random answer from the list and displays it in the label below the Get Answer button. Check the lists panel to see which block of code you should choose for this.
3. Test your app and make sure that it displays a random answer each time.
Demonstrate your working app for teacher check.
Mod 1
The original Magic 8 Ball toy required that you shake the eight ball and then the answer would appear. Modify your app to behave in the same manner.
4. Program the app to provide a random answer when the phone is shaken. You will need to add an Accelerometer sensor to your app for this step.
5. To make the app more accessible to people who have difficulty reading small screens add the text to speech function to your app and have the app speak the answer as well as display it.
Text to speech is found in the Media panel.
Demonstrate your working app for teacher check.
Mod 2
Some people have a hard time thinking of a question so have the app provide 10 questions in a list that the user can choose from. Here are some you might add, Will I get an A in Mobile Apps? Will it rain today?
Will I meet the love of my life today?....
6. Make a new global variable that is the list of questions. What would be a good name for this global variable?
7. Add a list picker to your app and set it to display your list of possible questions the user can choose from.
8. Once the question is picked
set the list picker text to the question and then have the app say the answer.
Demonstrate your working app for teacher check.