IB Computer Science 1

From WLCS
Revision as of 13:38, 10 March 2011 by Admin (talk | contribs)

Thursday (3/10/11)

Agenda:

Tuesday (3/8/11)

Warmup:

  1. Create a list with the following numbers: 6, 3, 8, 4, 3, 5, 4, 3, 2, 1, 6, 8, 9, 6, 7, 3, 7, 2, 5
  2. Create a variable named total and initialize it to 0 (zero)
  3. Use a loop to traverse the list
    • Add each list element to the total
  4. Print out your total after the loop is done

Agenda:

  • Final deadline: Dual enrollment forms are due (3/10/11)
  • Make sure (Basic) Python List Exercises is turned in
  • Advanced Python List Exercises
  • How do we use lists to simplify our Dodge game?
    • Example: If I have our warmup list, what would it look like to add 1 to every number?
    • Example: What would it look like to multiply every number by 2?
    • Example: What would it look like to reset all the numbers to 0?

Friday (3/4/11)

Warmup:

  • Write the loop that finds the index of the first vowel
  • Print out the index

Agenda:

Wednesday (3/2/11)

Warmup:

Agenda:

Archives