Difference between revisions of "Computer Science"
From WLCS
Line 1: | Line 1: | ||
− | == | + | == Monday (2/13/12) == |
− | + | '''Warmup:''' | |
− | * | + | * Define a function named '''stickPerson()''' |
− | * | + | * Make it draw a stick person on the screen |
− | + | ||
− | + | '''Agenda:''' | |
− | * | + | * Introduction to Function Parameters |
− | |||
− | |||
− | |||
* Redo the House Function | * Redo the House Function | ||
*# After demonstrating the House Function the first time, change the function by adding 2 parameters | *# After demonstrating the House Function the first time, change the function by adding 2 parameters | ||
Line 24: | Line 21: | ||
* Introduction to Values, Types, and Variables | * Introduction to Values, Types, and Variables | ||
* Complete [[Values, Types, and Variables Identification assignment]] | * Complete [[Values, Types, and Variables Identification assignment]] | ||
+ | * Practice writing programs with variables | ||
+ | ** | ||
+ | |||
+ | == Wednesday - Friday (2/8/12 - 2/10/12) == | ||
+ | '''Agenda:''' | ||
+ | * Introduction to Functions | ||
+ | ** Function definition | ||
+ | ** Function header | ||
+ | ** Function body | ||
+ | ** Function call | ||
+ | * Complete the [[Turtle - House Function Assignment]] | ||
+ | * Function parameters | ||
+ | ** Defining and calling a function with one parameter | ||
+ | ** Defining and calling a function with more than one parameter | ||
== Monday - Tuesday (2/6/12 - 2/7/12) == | == Monday - Tuesday (2/6/12 - 2/7/12) == |
Revision as of 09:19, 13 February 2012
Contents
Monday (2/13/12)
Warmup:
- Define a function named stickPerson()
- Make it draw a stick person on the screen
Agenda:
- Introduction to Function Parameters
- Redo the House Function
- After demonstrating the House Function the first time, change the function by adding 2 parameters
- Add x and y parameters to the function header's parameter list
- Add goto(x,y) at the beginning of the function body so that the house is drawn at (x,y)
- Don't forget to use penup() and pendown()
- Test your new function by making a function call using parameters:
house(0,200)
house(-200,200)
house(0,-200)
- Introduction to Values, Types, and Variables
- Complete Values, Types, and Variables Identification assignment
- Practice writing programs with variables
Wednesday - Friday (2/8/12 - 2/10/12)
Agenda:
- Introduction to Functions
- Function definition
- Function header
- Function body
- Function call
- Complete the Turtle - House Function Assignment
- Function parameters
- Defining and calling a function with one parameter
- Defining and calling a function with more than one parameter
Monday - Tuesday (2/6/12 - 2/7/12)
Agenda:
- More Python Turtle Commands
- exitonclick() reminder
- home()
- goto()
- circle()
- dot()
- More Turtle practice. Demo the following:
- Draw a bullseye target in the middle of the screen
- Draw dots in a row
- Draw a circle in each of the four corners
- Draw dots in a row of increasing size that are touching each other
Wednesday - Friday (2/1/12 - 2/3/12)
- How to submit to STEM Challenge
- Media:BasicProgrammingTerms.ppt
- Course Request Forms (CRFs)
- IB Computer Science: Part 1 (36570)
- IB Information Technology in the Global Society (36613)
- Introduction to Python Turtle
- More Python Turtle Commands
- exitonclick() reminder
- home()
- goto()
- circle()
- dot()
- Practice
- Draw a bullseye target in the middle of the screen
- Draw dots in a row
- Draw a circle in each of the four corners
- Draw dots in a row of increasing size that are touching each other