Schoology.org Code for AP: Access Code MG9TG

Schoology.org
Code for AP: Access Code
MG9TG-H25BV
Project 1:
Using modulus, write an algorithm in snap that will determine if a number is odd or even in Snap. Create a
variable called random. Use the random operator command to pick random from 1 to 20. Use the join to
combine show the random number and the say I am an even number. Refer to PPT.
Instructions:
Create an algorithm that will say the
random number and I am an even
number if the random number is even.
Else it will say the random number and I
am an odd number.
Save it as oddOrEven
Project 2:
Create a guessing game that will generate a random number
store it in a variable called randomNumber.
and
Create randomNumber variable
Create guess variable
Create if statements using relational operators as the condition
see if the randomNumber == guess
If so print the randomNumber and a statement that says if you
were correct or incorrect. Use if / else structure.
Save it as guessingGame
How to turn in your work:
Create a word document with your name.
Type Project 1. Type up an algoritm. Then go to the program and code the algorithm.
Do a print screen or insert and screenshot of your code and paste it into the document with your algorithm.
Do the same for Project 2.
to