CS1 - 1011 - October

From WLCS

Friday (10/29/30)

Agenda:

Wednesday - Thursday (10/27/10 - 10/28/10)

  • 1st Quarter Exam

Tuesday (10/26/10)

Warmup:

  1. Prompt the user to enter the day of the week (Monday, Tuesday, Wednesday, etc.)
  2. Use an if statement to check if the user's input matches Monday or Wednesday or Friday
    • Print out your classes for that day
  3. Otherwise, print out the classes for Tuesday or Thursday

Agenda:

Monday (10/25/10)

Warmup:

  1. Prompt the user to input numbers for the following variables: m, x, and b
    • Be sure to save them as variables
  2. Calculate the y variable from the formula: y=m*x+b
  3. Print out the y variable

Agenda:

Friday (10/22/10)

Warmup:

  1. Prompt the user to answer the following Yes/No question: "Do you have any siblings? (y/n)"
    • Be sure to save the response into a variable
  2. Check if the variable is "y", then print out "Awesome...you have brothers and sisters!"
  3. Else, if they say "n", then print out "Awesome...you're an only child!"

Period 2 - Agenda:

Thursday (10/21/10)

Warmup:

  • You will create a program that calculates the amount of time it takes for an object to hit the ground (when dropped from a distance)
    1. Prompt the user to enter a number (which will be how high the object is in meters) and store it in a variable s
    2. Calculate t using the formula: t = (s/(0.5*9.8))**0.5
    3. Print out the message: "Your object will hit the ground in t seconds"

Period 1 - Agenda:

Wednesday (10/20/10)

Warmup:

  1. Prompt the user with the following question: "What is the Washington-Lee mascot?"
    • Be sure to save the raw_input() into a variable!
  2. Use an if statement to check if the user's answer is equal to "Generals"
    • If so, then print out "You got it right!"
    • It not, then print out "Wrong answer buddy!"

Period 2 - Agenda:

  • Review of Conditionals
    • Comparison operators
  • MPAA calculator assignment
  • Demo your MPAA Calculator
  • Make sure you've turned in all the assignments

Monday - Tuesday (10/18/10 - 10/19/10)

Warmup:

  • You will create a program that calculates the amount of time it takes for an object to hit the ground (when dropped from a distance)
    1. Prompt the user to enter a number (which will be how high the object is in meters) and store it in a variable s
    2. Calculate t using the formula: t = (s/(0.5*9.8))**0.5
    3. Print out the message: "Your object will hit the ground in t seconds"

Period 1 - Agenda:

Period 2 - Agenda:

Thursday - Friday (10/14/10 - 10/15/10)

Warmup:

  • You will create a program that calculates speed
    1. Prompt the user (ask for input) for distance traveled and store it in a variable named distance
    2. Prompt the user (ask for input) for total time and store it in a variable named time
    3. Calculate the speed by dividing distance by time (distance/time) and store it in a variable named speed
    4. Print speed

Agenda:

Tuesday (10/12/10)

Warmup:

  • Assume you have the following code:
x = 5
a = 8
b = a-x*2
print b
  • What does the above program print?

Agenda:

Thursday - Friday (10/7/10 - 10/8/10)

Warmup:

  • Identify the types for the following variables:
    1. 43
    2. 3.5
    3. 2
    4. "washington"
    5. "2"
    6. "lee"

Agenda:

Tuesday (10/5/10)

Warmup:

  • Complete and submit the HTTLACS: Ch 1 exercises
  • Submit via School Web Lockers

Agenda:

Friday - Monday (10/1/10 - 10/4/10)

Warmup:

  • Research on the interwebz the following:
    1. Who invented the Python programming language?
    2. Where was it invented?
    3. Who funded the project to develop Python?

Agenda: