Difference between revisions of "IB Computer Science 1"

From WLCS
Line 1: Line 1:
 +
== Wednesday - Thursday (9/17/14) ==
 +
'''Agenda:'''
 +
* Demo [[Geek Flow Chart Assignment]]
 +
* Introduction to Loops
 +
** while loop
 +
** counter variables
 +
* Looping practice
 +
** Print out all the numbers from 0-50
 +
** Print out all the numbers from 75 down to 25
 +
** Write a loop that prints out the first 100 even numbers
 +
** 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
 +
** Print out all the numbers that are divisible by 6 from 0 through 100
 +
* Challenge
 +
** Prompt the user to enter a number
 +
** Use a loop to determine whether or not the number is a prime number
 +
 
== Monday - Tuesday (9/15/14 - 9/16/14) ==
 
== Monday - Tuesday (9/15/14 - 9/16/14) ==
 
'''Warmup:'''
 
'''Warmup:'''

Revision as of 13:33, 17 September 2014

Wednesday - Thursday (9/17/14)

Agenda:

  • Demo Geek Flow Chart Assignment
  • Introduction to Loops
    • while loop
    • counter variables
  • Looping practice
    • Print out all the numbers from 0-50
    • Print out all the numbers from 75 down to 25
    • Write a loop that prints out the first 100 even numbers
    • 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
    • Print out all the numbers that are divisible by 6 from 0 through 100
  • Challenge
    • Prompt the user to enter a number
    • Use a loop to determine whether or not the number is a prime number

Monday - Tuesday (9/15/14 - 9/16/14)

Warmup:

Agenda:

Thursday - Friday (9/11/14 - 9/12/14)

Warmup:

  1. Write a program to calculate the area of a trapezoid
  2. Prompt the user for base 1
  3. Prompt the user for base 2
  4. Prompt the user for the height
  5. Calculate and print out the area

Agenda:

Tuesday - Wednesday (9/9/14 - 9/10/14)

Warmup:

  • Turn in your signed syllabus if you have it. Due by the end of the week!
  • Log into your accounts
    • Username: first initial + last name (e.g. pbui)
    • Password: student ID#

Agenda:

  • Math Operations
    • Addition +
    • Subtraction -
    • Multiplication *
    • Division /
    • Exponential **
    • Order of operations!
  • 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

Friday - Monday (9/5/14 - 9/8/14)

Warmup:

  1. Turn in your syllabus if you have it signed
  2. Google Classroom
    • Sign into your APS Google accounts
    • Class code: xkh7hhq
  3. Submit your Hello World program from last class to Google Classroom

Agenda:

  • Media:BasicProgrammingTerms.ppt
  • Introduction to Values, Types, and Variables
  • 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: ###"

Wednesday (9/3/14 - 9/4/14)

Agenda:

Tuesday (9/2/14)

  • Introductions
  • Name cards
  • Guest login
    • Username: guest
    • No password (just hit enter)
  • Complete the Student Survey