IBCS1 - 1112 - September

From WLCS

Friday (9/30/11)

Warmup:

  • Answer the following questions with a True or False:
    1. 0 < 8
    2. 1 == 0
    3. 4 <= 4
    4. 9 > 10

Agenda:

Wednesday (9/28/11)

Warmup:

  1. Prompt the user to enter a string and store in a variable named s
  2. Prompt the user to enter a number and store in a variable named n
  3. Print out the string multiplied by the number: s*n

Agenda:

  • CSTA Survey
  • MadLibs, Circle, and Slope exercises
  • Quadratic Formula Assignment
  • return statement in functions
  • Go back and create functions that use return:
    • circumference(r)
    • area(r)
    • slope(x1, y1, x2, y2)

Back To School Night (9/26/10)

Monday (9/26/11)

Warmup:

  • Give an example for each of the following data types:
    • int
    • float
    • string

Agenda:

  • Values, Types, and Variables Review
  • Input and Output
  • Mad Libs exercise
    1. Prompt the user to enter a noun and store it in a variable named noun
    2. Prompt the user to enter a verb and store it in a variable named verb
    3. Prompt the user to enter another noun and store it in a variable named noun2
    4. Print out a message that contains noun, verb, and noun2
  • Circle calculations exercise
    1. Prompt the user to enter the radius of a circle (this should be a float)
    2. Calculate and print out the circumference of the circle. Make sure your output looks like: "Circumference: ###"
    3. Calculate and print out the area of the circle. Make sure your output looks like: "Area: ###"
  • Slope calculation exercise
    1. Prompt the user to enter x1 (this should be a float)
    2. Prompt the user to enter y1 (this should be a float)
    3. Prompt the user to enter x2 (this should be a float)
    4. Prompt the user to enter y2 (this should be a float)
    5. Calculate and print out the slope. Make sure your output looks like: "Slope: ###"
  • Quadratic Formula Assignment

Thursday (9/22/11)

Warmup:

  1. Define a function named drawSquare() that draws a 100x100 square
  2. Test out your function by making several drawSquare() function calls

Agenda:

  • Demo Turtle - House Function Assignment
  • Introduction to Values, Types, and Variables
  • Complete Values, Types, and Variables Identification assignment
  • Function parameters
    • Defining and calling a function with one parameter
    • Defining and calling a function with more than one parameter
  • Redo the House Function
    1. After demonstrating the House Function the first time, change the function by adding 2 parameters
    2. Add x and y parameters to the function header's parameter list
    3. Add goto(x,y) at the beginning of the function body so that the house is drawn at (x,y)
    4. Don't forget to use penup() and pendown()
    5. Test your new function by making a function call using parameters:
house(0,200)
house(-200,200)
house(0,-200)

Tuesday (9/20/11)

Warmup:

  • Draw a triangle on the screen that has dots at each of its corners

Agenda:

Friday (9/16/11)

Agenda:

  • Make sure you demo the Turtle - Moving and Drawing Assignment
  • More Python Turtle Commands
    • exitonclick() reminder
    • home()
    • goto()
    • circle()
    • dot()
  • Practice
    • Draw a bullseye target in the middle of the screen
    • Draw dots in a row
    • Draw a circle in each of the four corners
    • Draw dots in a row of increasing size that are touching each other

Monday - Wednesday (9/12/11 - 9/14/11)

Warmup:

  • Using the power of the internets, what was the first commercial graphical user interface (GUI) developed for the personal computer?
  • In what year was the first GUI introduced?
  • In what year was the Unix operating system developed?

Agenda:

Tuesday - Thursday (9/6/11 - 9/8/11)

  • Introductions
  • Name cards
  • Lab setup/config
    • Login username is your first initial and lastname (e.g. pbui)
    • Your password is your student ID number
    • Go to Apple (upper left) -> System Preferences -> Accounts -> Change Password
    • Acceptable-use policies apply in this lab!
  • Student Surveys
    • Fill out and submit
  • Misc logistics
    • 20/10 no pass policy
    • Location of bathrooms
    • Sign in/out sheets
  • IB Computer Science I Syllabus
  • What is computer science?
    1. List 3 people/things/systems that use computers (e.g. air traffic control)
    2. For each of the above people/things/systems, write down the information that they use (e.g. flight information)
    3. List 3 things you have done in any science class
    4. Define the term: "to compute" or "computation"
  • How many steps are necessary in making a PB&J sandwich?