CS1 - 1213 - March

From WLCS

Monday - Friday (3/25/13 - 4/1/13)

  • Spring Break

Tuesday - Thursday (3/19/13 - 3/21/13)

Agenda:

Friday (3/15/13)

Warmup:

  • Write a while loop that prints the numbers 50 to 100

Agenda:

  • Demo Guessing Game Assignment
  • Looping practice exercises
    1. Print out all the numbers from 0-50
    2. Print out all the numbers from 75 down to 25
    3. Write a loop that prints out the first 100 even numbers
    4. Prompt the user for a number and store it in a variable n, then print out the first n odd numbers (starting at 1) using a loop
  • Complete Print Shapes Exercises

Wednesday (3/13/13)

Agenda:

Thursday - Monday (3/7/13/ - 3/11/13)

Warmup:

  • Complete the Order of Operations Quiz
    • Do not make mistakes!
    • No partial credit given
    • All or nothing
    • Remember the order of operations!

Agenda:

  • Demo MPAA calculator assignment
  • Old school menu systems
    1. Print out the menu on multiple lines
    2. Prompt the user for an option
    3. Use if statements to check the input and do different things for different options

Tuesday (3/5/13)

Friday (3/1/13)

Warmup:

  • Without using a computer, identify the syntax errors in the following code
username = input(Username: )
password = input("Password: "
if username = "admin":
  if password == "secret"
    print(Logged in successfully!"
  else:
    pint("Incorrect password!")
else
  print("Incorrect username!")

Agenda: