Difference between revisions of "Computer Science I"

From WLCS
Line 43: Line 43:
 
* HTTLACS: Ch6 #1-4
 
* HTTLACS: Ch6 #1-4
 
* [[Looping Exercises]]
 
* [[Looping Exercises]]
* Using your isPrime(x) function, write a loop that prints out the first 100 prime numbers.
+
* Introduction to Strings
* Introduction to Strings
+
* Complete HTTLACS: Ch7 #1, 2, 5, 6
 +
* [[E-mail Harvester Assignment]]
 +
 
  
 
== Archives ==
 
== Archives ==

Revision as of 10:37, 6 January 2009

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