Difference between revisions of "Computer Science I"

From WLCS
Line 2: Line 2:
 
'''Agenda:'''
 
'''Agenda:'''
 
* Demo a completed [[E-mail Harvester Assignment]]
 
* Demo a completed [[E-mail Harvester Assignment]]
 +
* Strings quiz review
 
* Quiz on Ch 7: strings and e-mail harvester (closed-book) on Friday
 
* Quiz on Ch 7: strings and e-mail harvester (closed-book) on Friday
 
* Complete HTTLACS: Ch7 #5-8 this week
 
* Complete HTTLACS: Ch7 #5-8 this week

Revision as of 08:08, 5 May 2010

Wednesday (5/5/10)

Agenda:

  • Demo a completed E-mail Harvester Assignment
  • Strings quiz review
  • Quiz on Ch 7: strings and e-mail harvester (closed-book) on Friday
  • Complete HTTLACS: Ch7 #5-8 this week

Monday (5/3/10)

Warmup:

  1. s = "H e l l o , w o r l d !"
  2. Create a variable named new_s that contains an empty string
  3. Write a while loop where the counter variable x starts at 0 and goes up to len(s)
    1. Check if the current letter at x (s[x]) is NOT a space
      • Add the current letter (s[x]) to new_s
    2. Increment x
  • What does the above code produce?

Agenda:

  • Demo a completed E-mail Harvester Assignment
  • Quiz on strings and e-mail harvester (closed-book) on Friday
  • Complete HTTLACS: Ch7 #5-8 this week

Archives