Difference between revisions of "Computer Science I"

From WLCS
Line 1: Line 1:
 +
== Monday (1/12/09) ==
 +
* 2nd Quarter Exam Review
 +
** Variables, expressions, and statements
 +
** Functions
 +
*** function header
 +
*** function definitions
 +
*** function calls
 +
*** parameters
 +
*** return statements
 +
** Conditionals
 +
*** Boolean values and variables
 +
*** modulus (%) operator
 +
*** comparison operators (e.g., <, >)
 +
*** logical operators (e.g., and, or)
 +
*** Boolean conditional expressions (e.g., 2 > x and y < 3)
 +
*** if statements
 +
*** if-elif-else statements
 +
** Iteration (looping)
 +
*** while and for loops
 +
*** counter variables
 +
*** infinite loops
 +
*** break
 +
** Strings
 +
*** [] operator
 +
*** len() function
 +
*** string slices
 +
*** string traversal (strings + loops)
 +
 
== Thurdsay (1/8/09) ==
 
== Thurdsay (1/8/09) ==
 
* Demo missing work
 
* Demo missing work

Revision as of 09:03, 12 January 2009

Monday (1/12/09)

  • 2nd Quarter Exam Review
    • Variables, expressions, and statements
    • Functions
      • function header
      • function definitions
      • function calls
      • parameters
      • return statements
    • Conditionals
      • Boolean values and variables
      • modulus (%) operator
      • comparison operators (e.g., <, >)
      • logical operators (e.g., and, or)
      • Boolean conditional expressions (e.g., 2 > x and y < 3)
      • if statements
      • if-elif-else statements
    • Iteration (looping)
      • while and for loops
      • counter variables
      • infinite loops
      • break
    • Strings
      • [] operator
      • len() function
      • string slices
      • string traversal (strings + loops)

Thurdsay (1/8/09)

  • Demo missing work

Agenda - Regular:

Agenda - IB:

Tuesday (1/6/09)

Warmup:

  • Describe in less than ten words what you did over winter break
    • Mr. Bui's example: DVDs, food, college recommendations
  • Assume you have the following code:
i = 0
n = 1
while i < 25:
  n += 2
  i += 1
  • WITHOUT using your computer, what are the final values of i and n?

Agenda - All:

  • Looping warmup review
  • break keyword
  • Assume you have the following code:
i = 0
n = 1
while i < 25:
  n += 2
  if n > 10:
    break
  i += 1
  • WITHOUT using your computer, what are the final values of i and n?
  • Demo missing work

Agenda - Regular:

Agenda - IB:

Archives