Difference between revisions of "IB Computer Science 1"

From WLCS
Line 1: Line 1:
== Monday (2/21/12) ==
+
== Tuesday (2/21/12) ==
 
'''Warmup:'''
 
'''Warmup:'''
 
* Assume you have a '''matrix = [ [2, 4, 6], [1, 3, 5], [0, 1, 2] ]'''
 
* Assume you have a '''matrix = [ [2, 4, 6], [1, 3, 5], [0, 1, 2] ]'''

Revision as of 09:25, 21 February 2012

Tuesday (2/21/12)

Warmup:

  • Assume you have a matrix = [ [2, 4, 6], [1, 3, 5], [0, 1, 2] ]
  • Write a nested loop that sums all the elements

Agenda:

  • Complete Nested List demos (multiplying matrices is optional)
  • Nested Loops - Multiplying Matrices
  • List Surprise
  • Pig Latin Translator w/ Lists

Tuesday - Thursday (2/14/12 - 2/16/12)

Warmup:

  • Assume you are given the following code:
a = ???
b = ???

#Using an additional variable, swap the values in a and b (even though you don't know what they are)

Agenda:

  • Complete Advanced Python List Exercises
  • Introduction to Nested Lists
    • Nested List Practice
    • Application in matrices
    • Other applications
  • Nested List Practice
    1. Create a program that calculates the determinant of a 2x2 matrix. Be sure to test your program.
    2. Create a program that calculates the determinant of a 3x3 matrix. Be sure to test your program.
    3. Create a program that multiplies two matrices against each other

Wednesday - Friday (2/8/12 - 2/10/12)

Warmup:

Agenda:

Monday (2/6/12)

Warmup:

  • On a separate sheet of paper, write out the algorithm to find the minimum number in a list of numbers

Agenda:

Tuesday - Thursday (1/31/12 - 2/2/12)

Warmup:

  • Create a Python Turtle program that tells the turtle to move forward 100
  • Don't forget about exitonclick()

Agenda:

Archives