CS1 - 0910 - January
From WLCS
Contents
Tuesday - Thursday (1/26/10 - 1/28/10)
Warmup:
- Bring up your Catch code
- For each of the following, find the section of code that handles it, and put a comment there
- Opens the graphics window
- Detects keyboard buttons being pressed
- Moves the ball a little bit
- Displays the player and computer scores on the screen
- Checks if the ball and mitt have collided
- Refreshes (updates) the screen
Regular:
- Review warmup
- Pong
IB:
Friday (1/22/10)
Regular:
IB:
Wednesday (1/20/10)
- Rise of the Video Game: Part 1
Tuesday - Thursday (1/12/10 - 1/15/10)
Warmup:
Agenda:
- Demo missing work - Thursday is your last day for the quarter!
Friday (1/8/10)
- 2nd Quarter Exam
Wednesday (1/6/10)
Agenda:
- 2nd Quarter Exam will be on Friday (1/8/10)
- 2nd Quarter Exam Review
- input, output, variables, and math expressions
- functions
- if statements
- comparison operators
- ==
- !=
- <
- >
- <=
- >=
- Boolean operators
- and
- or
- comparison operators
- while loops
- sequences
- break keyword
- Demo all of the following assignments:
Monday (1/4/10)
Warmup:
- In three words, summarize your winter break
Agenda:
- 2nd Quarter Exam will be on Friday (1/8/10)
- If-statement review
- Prompt the user to enter a username and store it in a variable named username
- Prompt the user to enter a password and store it in a variable named password
- Using an if-statement, check if the username equals "admin" and the password equals a password of your choosing
- If the login is successful, then print that the "You have successfully logged in"
- If the login fails, then print "Authentication failure!"
- While statement
- Practice: Write a loop that prints out 1 through 5
- Write a while loop that runs exactly 5 times, each time the loop runs, print out "Login Trial #N" where N is the loop counter
- Take the if-statement code and put it inside the loop
- If the user successfully logs in, then also break out of the loop using the break keyword
- Demo all of the following assignments: