The last tutorial before the review introduced "else if" statements. these statements allow you to create a function that can except and reject statements.
After this is a brief review over the entire lesson before assigning the project. The project is to create a magic 8-ball.
To start off the project I used "else if" statements to get the words to change.
I encountered a problem when one of the random options kept turning up blank. to solve this mystery I added another line of code to identify the problem number (text(answer,196,171));. This allowed me to find it that when the number generator landed on zero no text would show up. To solve this I created another statement just for the zero.
To finish off the project I added a circle over the number Identifier.
Moving on to debugging lesson tomorrow.
No comments:
Post a Comment