Difference between revisions of "IB Computer Science 1"

From WLCS
Line 15: Line 15:
 
*# Write the rest of the code to make the house follow the mouse
 
*# Write the rest of the code to make the house follow the mouse
 
*# Try creating other functions to draw other pictures (e.g. smiley) and make them follow the mouse
 
*# Try creating other functions to draw other pictures (e.g. smiley) and make them follow the mouse
 +
* Work on [https://docs.google.com/document/d/1RCVlD8xOl4mzuIm2kxQUtyccOOJa_6bBFVa3S57Sj_E/edit?usp=sharing Processing Project: Simple Paint]
  
 
== Monday - Tuesday (10/3/16 - 10/4/16) ==
 
== Monday - Tuesday (10/3/16 - 10/4/16) ==

Revision as of 23:22, 4 October 2016

Wednesday - Thursday (10/5/16 - 10/6/16)

Warmup:

  1. Complete Warmup-1: monkey_trouble (try not to look at the solution)
  2. Challenge: Complete the warmup in as few lines as possible (1 line of code is possible)

Agenda:

  • Complete and demo Processing House Assignment
  • Introduction to Processing Animations
    • setup()
    • draw()
  • Complete and submit Processing My First Animation
  • Animation Practice
    1. Create a new Processing sketchbook (program) named MovingHouse
    2. Copy and paste your drawHouse() function
    3. Write the rest of the code to make the house follow the mouse
    4. Try creating other functions to draw other pictures (e.g. smiley) and make them follow the mouse
  • Work on Processing Project: Simple Paint

Monday - Tuesday (10/3/16 - 10/4/16)

Warmup:

  1. Create an account on CodingBat
  2. Complete Warmup-1: sleep_in (try not to look at the solution)
  3. Challenge: Complete the warmup in as few lines as possible (1 line of code is possible)

Agenda:

Thursday - Friday (9/29/16 - 9/30/16)

Warmup:

Agenda:

Tuesday - Wednesday (9/27/16 - 9/28/16)

Agenda:

Friday - Monday (9/23/16 - 9/26/16)

Agenda:

Back to School Night

Wednesday - Thursday (9/21/16 - 9/22/16)

Warmup:

  • Make sure you completed the Letter Grade Calculator from last class
  • Submit your Letter Grade Calculator code via Google Classroom

Agenda:

Monday - Tuesday (9/19/16 - 9/20/16)

Warmup:

Agenda:

  • Introduction to Booleans & Conditionals
    • Comparison operators (<, >, <=, >=, ==, !=)
    • Boolean values: True, False
    • Logic operators: and, or, not
    • Media:PythonBooleanLogic.pptx
    • Logical operators assignment
    • Evaluate the following comparisons with logic operators (assume x = 2; y = 5)
      1. x + 2 > y or y < 10
      2. not(x < y) and y > 2 * x
      3. y > 0 and y < 10 or x > 10 and x < 20
      4. x + y != 5 and x - y < 0
      5. x == 2 and y != 5
      6. x != y or y >= x
    • if statement
    • if-else statement
    • nested if statements
  • Letter Grade Calculator
    1. Prompt the user for a number (0-100) (if you don't remember, look at past notes and lectures)
      • Note: Your program should be able to handle floating-point numbers!
    2. Use if-statements, comparison operators, and logical operators (and, or, not)
    3. Print out the appropriate letter grade for the number (A, B+, B, C+, C, D+, D, E)
      • Note: Your program should round letter grades appropriately (Example: grade >= 89.5 is an A)

Thursday - Friday (9/15/16 - 9/16/16)

Warmup:

  • 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: ###"

Agenda:

Tuesday - Wednesday (9/13/16 - 9/14/16)

Agenda:

  • Complete and turn in Values, Types, and Variables Identification assignment via Google Classroom
  • Input and Output
  • 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: ###"

Homework:

  1. Go to Syllabus (on the left)
  2. Read it
  3. Complete the agreement form with your parent (you will need your APS Google login)

Friday - Monday (9/9/16 - 9/12/16)

Agenda:

Homework:

  1. Go to Syllabus (on the left)
  2. Read it
  3. Complete the agreement form with your parent (you will need your APS Google login)

Wednesday - Thursday (9/7/16 - 9/8/16)

  • Name cards
  • Complete the Student Survey
  • Misc logistics
    • 20/10 no pass policy
    • Location of bathrooms
    • Sign in/out sheets
    • Mr. Bui has C Lunch (3rd Lunch)
  • IB Computer Science I Syllabus
    • Complete online syllabus agreement form by the end of next week (9/16/16)
  • Google Classroom
    • Sign into your APS Google accounts
    • Class code:
      • Period 1: n6srblg
      • Period 2: ykntyu
      • Period 5: 7ejp17p
  • What is computer science?

Homework:

  1. Go to Syllabus (on the left)
  2. Read it
  3. Complete the agreement form with your parent (you will need your APS Google login)

Tuesday (9/6/16)

  • Introductions
  • Name cards

Homework:

  1. Go to Syllabus (on the left)
  2. Read it
  3. Complete the agreement form with your parent (you will need your APS Google login)

Archives