Difference between revisions of "Computer Science I"

From WLCS
Line 25: Line 25:
 
* Return assignments and 1st Quarter Exam
 
* Return assignments and 1st Quarter Exam
 
* Review 1st Quarter Exam
 
* Review 1st Quarter Exam
 +
* [[Geek Flow Chart Assignment]]
 +
* Read through HTTLACS: Ch 5 and complete the exercises
  
 
== Archives ==
 
== Archives ==
 
* [[CS1 - October]]
 
* [[CS1 - October]]
 
* [[CS1 - September]]
 
* [[CS1 - September]]

Revision as of 10:30, 5 November 2008

Wednesday (11/5/08)

Warmup:

  • Take out a sheet of scratch paper and trace the code below. You should be writing down the values of different variables as they change
  • What are the final values of a, b, and c?


a = 1
b = 5
c = 10

if a == b or b < c:
    temp = c - b
    if temp >= b:
        a = 3
    else:
        a = 2
else:
    b = 10 - a
    a = 2*a


Agenda:

  • Return assignments and 1st Quarter Exam
  • Review 1st Quarter Exam
  • Geek Flow Chart Assignment
  • Read through HTTLACS: Ch 5 and complete the exercises

Archives