IBCS1 - 1011 - October

From WLCS

Thursday (10/28/10)

Agenda:

Tuesday (10/26/10)

Warmup:

Agenda:

Wednesday - Friday (10/20/10 - 10/22/20)

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!"

Agenda:

Monday (10/18/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"

Agenda:

Thursday (10/14/10)

Agenda:

Tuesday (10/12/10)

Agenda:

Thursday (10/7/10)

Warmup:

  • Prompt the user to enter a word and store it in a variable named word (HINT: use raw_input())
  • Prompt the user to enter a number and store it in a variable named num (HINT: use input())
  • Print word num times (HINT: multiple word by num)

Agenda:

Tuesday (10/5/10)

Warmup:

  • Prompt the user to enter a number using input() and store it in a variable x
  • Print out the square of the number with a message: "The square of", x, "is", _______
  • Print out the square root of the number with a message: "The square root of", x, "is", _______

Agenda:

Friday (10/1/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? (Hint: Guido Van Rossum)

Agenda: