Computer Science
From WLCS
Contents
- 1 Thursday (3/1/12)
- 2 Wednesday (2/29/12)
- 3 Monday - Tuesday (2/27/12 - 2/28/12)
- 4 Wednesday - Friday (2/22/12 - 2/24/12)
- 5 Thursday - Tuesday (2/16/12 - 2/21/12)
- 6 Wednesday - Thursday (2/15/12 )
- 7 Monday - Tuesday (2/13/12 - 2/14/12)
- 8 Wednesday - Friday (2/8/12 - 2/10/12)
- 9 Monday - Tuesday (2/6/12 - 2/7/12)
- 10 Wednesday - Friday (2/1/12 - 2/3/12)
- 11 Archives
Thursday (3/1/12)
Warmup:
- Put your name on your syntax checklist
- Print it out
Agenda:
- Syntax checking activity
- No computers, only your checklist
- Media:BooleanLogic.ppt
- Logical operators assignment
- MPAA calculator assignment
Wednesday (2/29/12)
Agenda:
Monday - Tuesday (2/27/12 - 2/28/12)
Warmup:
- Open up MS Word or any other text editor
- With a partner, create a checklist of things to look for when you are checking your program's syntax
- Example: Check for spelling mistakes
Agenda:
- Demo College Admissions Exercise
- Comparison operators assignment
- Media:BooleanLogic.ppt
- Logical operators assignment
- MPAA calculator assignment
Wednesday - Friday (2/22/12 - 2/24/12)
Warmup:
- Write a program that prompts the user for his/her name
- Prompt the user for the his/her age
- Print out a message that says, "NAME is AGE years old" (using the inputted name and age)
Agenda:
- Media:PythonInputOutput.ppt
- Complete and demo Quadratic Formula Assignment
- Introduction to Conditionals
- Comparison operators (<, >, <=, >=, ==, !=)
- Boolean values: True, False
- if statement
- if-else statement
- nested if statements
- College Admissions Exercise
- Research a random college admission's median GPA and SAT
- Prompt the user for his/her GPA
- Prompt the user for his/her SAT
- Using if-statements, print out whether or not the user meets the median requirements for that college
Thursday - Tuesday (2/16/12 - 2/21/12)
Warmup:
- Write a program that has 2 variables: base and height
- Give the variables some values
- Calculate the area of a triangle and print it out
Agenda:
- Input and Output
- Media:PythonInputOutput.ppt
- Go back and change your programs so that they accept input
- Quadratic Formula Assignment
Wednesday - Thursday (2/15/12 )
Warmup:
- Identify the invalid variable names:
- computer
- COMPUTER
- computer science
- computer_science
- 1computer
- cOmPuTeR867
Agenda:
- Review Introduction to Values, Types, and Variables
- Math operations in Python
- Slope calculator program
- Create 4 variables named x1, y1, x2, y2 and give them some values
- Calculate the slope using those variables and store it in a variable named m
- HINT: If you can't remember the formula for something, look it up
- Print out the slope
- Circle calculator program
- Create a variable named radius and give it a test value
- Create a variable named PI and give it the value of pi (you decide how many digits)
- Calculate and print out the circumference of the circle. Make sure your output looks like: "Circumference: ###"
- Calculate and print out the area of the circle. Make sure your output looks like: "Area: ###"
Monday - Tuesday (2/13/12 - 2/14/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
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