CS1 - 0910 - January

From WLCS
Revision as of 12:03, 29 November 2010 by Admin (talk | contribs) (Reverted edits by Ysukivewug (talk) to last revision by Admin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

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:

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
  • while loops
    • sequences
    • break keyword

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
    1. Prompt the user to enter a username and store it in a variable named username
    2. Prompt the user to enter a password and store it in a variable named password
    3. Using an if-statement, check if the username equals "admin" and the password equals a password of your choosing
    4. If the login is successful, then print that the "You have successfully logged in"
    5. If the login fails, then print "Authentication failure!"
  • While statement
    1. Practice: Write a loop that prints out 1 through 5
    2. 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
    3. Take the if-statement code and put it inside the loop
    4. If the user successfully logs in, then also break out of the loop using the break keyword
  • Demo all of the following assignments:

Archives