Difference between revisions of "Computer Science"

From WLCS
Line 1: Line 1:
 +
== Tuesday (11/16/10) ==
 +
'''Warmup:'''
 +
* Complete [[Geek Flow Chart Assignment]] if you have not done so
 +
* Otherwise, please write a program the does the following:
 +
# Prompt the user for his/her age
 +
# Ask the user whether or not they have committed a felony (y/n)
 +
# Ask the user whether or not they are a U.S. citizen (y/n)
 +
# If the age is greater than or equal to 18 AND they have not committed a felony, then print "You should be eligible to vote in the U.S."
 +
# Else, print out "You do not meet voting prerequisites"
 +
 +
'''Agenda:'''
 +
* Reintroduction to Functions (but for realz this time)
 +
* [http://openbookproject.net/thinkcs/python/english2e/ch05.html HTTLACS: Ch 5]
 +
* Complete the exercises at the end of [http://openbookproject.net/thinkcs/python/english2e/ch05.html HTTLACS: Ch 5]
 +
 
== Monday (11/15/10) ==
 
== Monday (11/15/10) ==
 
'''Warmup:'''
 
'''Warmup:'''

Revision as of 09:16, 16 November 2010

Tuesday (11/16/10)

Warmup:

  1. Prompt the user for his/her age
  2. Ask the user whether or not they have committed a felony (y/n)
  3. Ask the user whether or not they are a U.S. citizen (y/n)
  4. If the age is greater than or equal to 18 AND they have not committed a felony, then print "You should be eligible to vote in the U.S."
  5. Else, print out "You do not meet voting prerequisites"

Agenda:

Monday (11/15/10)

Warmup:

  • Bring up HTTLACS: Ch 3
  • Define a function named GiveMe5()
  • Make the function print out 5

Agenda:

Tuesday - Friday (11/9/10 - 11/12/10)

Warmup:

Agenda:

Monday (11/8/10)

Warmup:

  1. Prompt the user by asking them "Have you passed enough classes (y/n)?"
  2. Prompt the user by asking them "Have you passed all your SOLs (y/n)?"
  3. Using an if-statement, if both answers are "y", then print "You are able to graduate"
  4. Else, print "You are not able to graduate. Try again later."

Agenda:

Friday (11/5/10)

Agenda:

Thursday (11/4/10)

Warmup:

  1. Prompt the user to enter his/her name
  2. Check if the name matches (equals) your name
    • If it is a match, then print, "Welcome NAME!"
  3. Else
    • Print "You are not welcome here NAME!"

Agenda:

Wednesday (11/3/10)

Warmup:

  1. Prompt the user to enter his/her name
  2. Check if the name matches (equals) your name
    • If it is a match, then print, "Welcome NAME!"
  3. Else
    • Print "You are not welcome here NAME!"

Agenda:

Tuesday (11/2/10)

  • Teacher Work Day

Monday (11/1/10)

Warmup:

  • Prompt the user to enter his/her grade (0-100)
  • Using if statements, do the following:
    • if the grade is greater than or equal to 90, then print "You have an A"
    • if the grade is less than 90 and the grade is greater than or equal to 80, then print "You have a B"
    • if the grade is less than 80 and the grade is greater than or equal to 70, then print "You have a C"
    • if the grade is less than 70 and the grade is greater than or equal to 60, then print "You have a D"
    • if the grade is less than 60, then print "You have an E"

Agenda:

Archives