Conditionals Game Plan Review Discuss AND OR Discuss

  • Slides: 9
Download presentation
+ Conditionals

+ Conditionals

+ Game Plan ■ Review ■ Discuss AND & OR ■ Discuss Randomness ■

+ Game Plan ■ Review ■ Discuss AND & OR ■ Discuss Randomness ■ Remix a Dice Game add programming code

+ REVIEW Review IF Statements

+ REVIEW Review IF Statements

+ AND From Yesterday Age Program Consider these Option: How would you write this

+ AND From Yesterday Age Program Consider these Option: How would you write this in code. If Age is greater than 3 AND less than 12 then Say You are a Kid. If Age is greater than 13 AND less than 19 then Say You are a Teen.

+ Or From Yesterday Age Program Consider these Option: How would you write this

+ Or From Yesterday Age Program Consider these Option: How would you write this in code. If Age is greater than 3 OR less than 12 then Say You are a Kid. If Age is greater than 13 OR less than 19 then Say You are a Teen.

+ Journal Entry What does the word “random” mean in English? Provide examples of

+ Journal Entry What does the word “random” mean in English? Provide examples of when “randomness” is used in our world.

+ Randomness If I roll a pair of dice, What combinations will give me

+ Randomness If I roll a pair of dice, What combinations will give me a total of 7? What is the highest number can I get with a pair of dice? What is the lowest number can I get with a pair of dice?

+ DICE PROGRAM Create a program that rolls a die (dice). When die is

+ DICE PROGRAM Create a program that rolls a die (dice). When die is click and new side should show. You must use a variable so that a value can be saved. Extra Fun add animation

+ DICE PROGRAM Create a program that rolls your die and compares it against

+ DICE PROGRAM Create a program that rolls your die and compares it against the computer’s die to see who rolled the highest. You will need more than one variable and compare the variable to declare a winner.