# aaronharnly/girlsrockcomputerscience

Lesson 9: conditionals

1 parent 8db1e82 commit ab7149255f7732cb0687f6ada32eb60f1e6bc7ea committed Sep 25, 2013
Showing with 82 additions and 35 deletions.
1. +79 −0 2013-09-24.html
2. +3 −35 index.html
79 2013-09-24.html
 @@ -0,0 +1,79 @@ + + + Computer Science + + + +
+

Do Now

+

Do Now

+
+
+

Snap Setup

+

Remember, your Snap! username is: ywls-{firstname}{lastinitial}. For example, Alicia Smith would be ywls-alicias.

+

+

+

Start Snap!

+
+
+

Loops: N-Sided Polygon

+

Your challenge: Create a program that

+
+
• +
• Sets a variable for the number of sides
• +
• Sets another variable with the angle to turn at each side
• +
• Uses a loop to draw each side of the polygon, and turn to prepare to draw the next side
• +
• Make sure to initialize your program with "clear" and "go to 0, 0" blocks so you + have a clean stage each time.
• +
+

Here is an example of running the N-Sided Polygon program and choosing 4 sides:

+

+

+ +

Here I run it again, but choose 8 sides:

+

+

+ +

This is my program (made blurry so you don't just copy it!):

+

+
+
+

Conditionals

+

Your challenge: Create a program that counts up from 1 to 10

+

Use: + + +

+

Output the numbers using:

+ +
+ + + + +
38 index.html
 @@ -30,8 +30,10 @@
+

Computer Science, 2013-09-25

Do Now

-

Do Now

+

Click to Do Now

Snap Setup

@@ -40,40 +42,6 @@

Start Snap!

-
-

Loops: N-Sided Polygon

-

Your challenge: Create a program that

-
-
• -
• Sets a variable for the number of sides
• -
• Sets another variable with the angle to turn at each side
• -
• Uses a loop to draw each side of the polygon, and turn to prepare to draw the next side
• -
• Make sure to initialize your program with "clear" and "go to 0, 0" blocks so you - have a clean stage each time.
• -
-

Here is an example of running the N-Sided Polygon program and choosing 4 sides:

-

-

- -

Here I run it again, but choose 8 sides:

-

-

- -

This is my program (made blurry so you don't just copy it!):

-

-
-
-

Conditionals

-

Your challenge: Create a program that counts up from 1 to 10

-

Use: - - -

-

Output the numbers using:

- -
- -