Difference between revisions of "Computer Science"

From WLCS
Line 1: Line 1:
 +
== Wednesday - Thursday (3/18/15 - 3/19/15) ==
 +
'''Warmup:'''
 +
* Search the Python turtle documentation and find the function that is used to get the turtle's pen size
 +
* Search the Python turtle documentation and find the function that is used to change the turtle's pen size
 +
* Search the Python turtle documentation and find the function that will clear all the drawings from the screen
 +
 +
'''Agenda:'''
 +
* Demo any missing assignments
 +
* Demo [[Monte Carlo Calculation of Pi]]
 +
* Demo the Turtle visualization of [[Monte Carlo Calculation of Pi]]
 +
* Demo a Turtle Paint program that has the following buttons
 +
** At least 3 different colors
 +
** Increase the pen size
 +
** Decrease the pen size
 +
** Clear the screen
 +
 
== Friday - Tuesday (3/13/15 - 3/17/15) ==
 
== Friday - Tuesday (3/13/15 - 3/17/15) ==
 +
'''Agenda:'''
 
* Demo any missing assignments
 
* Demo any missing assignments
 
* Demo [[Monte Carlo Calculation of Pi]]
 
* Demo [[Monte Carlo Calculation of Pi]]

Revision as of 11:02, 19 March 2015

Wednesday - Thursday (3/18/15 - 3/19/15)

Warmup:

  • Search the Python turtle documentation and find the function that is used to get the turtle's pen size
  • Search the Python turtle documentation and find the function that is used to change the turtle's pen size
  • Search the Python turtle documentation and find the function that will clear all the drawings from the screen

Agenda:

Friday - Tuesday (3/13/15 - 3/17/15)

Agenda:

  • Demo any missing assignments
  • Demo Monte Carlo Calculation of Pi
  • Demo the Turtle visualization of Monte Carlo Calculation of Pi
  • Turtle colors
  • Turtle writing: write()
  • Turtle mouse-clicking: onscreenclick()
  • Simple paint program walk-through
  • Try implementing the following functionalities:
    • Different colors
    • Eraser
    • Increase/Decrease pensize
    • Polygon draw

Monday - Wednesday (3/9/15 - 3/11/15)

  • Got-A-Gadget @ Central Library (3:30pm, Thursday, 3/12/15)
    • Great community service opportunity
  • Demo Looping Exercises
  • Monte Carlo Calculation of Pi
    • If you finish the console version, then implement a graphical version of Monte Carlo Pi using Python Turtle

Thursday (3/5/15)

  • Snow Day

Tuesday (3/3/15)

Agenda:

Wednesday - Friday (2/25/15 - 2/27/15)

Agenda:

Monday (2/23/15)

Agenda:

  • Work on Looping practice with a partner
    1. Print out all the numbers from 0-50
    2. Print out all the numbers from 75 down to 25
    3. Write a loop that prints out the first 100 even numbers
    4. 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
    5. Print out all the numbers that are divisible by 6 from 0 through 100
  • Complete Guessing Game Assignment

Thursday (2/19/15)

Agenda:

  • Demonstrate #2, 3 of Turtle - Looping Assignment
  • Demonstrate to Mr. Bui a turtle design that uses looping
  • Looping practice
    1. Print out all the numbers from 0-50
    2. Print out all the numbers from 75 down to 25
    3. Write a loop that prints out the first 100 even numbers
    4. 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
    5. Print out all the numbers that are divisible by 6 from 0 through 100

Thursday (2/12/15)

Agenda:

  • Demo missing assignments
  • Codecademy - Lists & Dictionaries optional right now
  • Introduction to Loops
    • while loop
    • loop counters
  • Complete #1, 2, 3 of Turtle - Looping Assignment
  • Create your own turtle loop designs. Be creative

Friday - Tuesday (2/6/15 - 2/10/15)

Warmup:

Agenda:

  • Demonstrate that you have completed Codecademy up through Taking a Vacation
  • Complete and demo Turtle - Initials Assignment
  • Continue on through Codecademy and complete Lists & Dictionaries

Wednesday (2/4/15)

Agenda:

Monday (2/2/15)

Warmup:

  1. Go to CodingBat and create an account
  2. Login and go to prefs->teacher share and use BuiEmail.bmp
  3. Complete 2 exercises from Warmup-1 (do not look up the solutions)

Agenda:

  • Demo missing Codecademy (you should be done through Functions)
  • Function Review
    1. Define functions at the top of the file
    2. Only use variables that you send in as parameters or create in the function
    3. return information, do not just print()
    4. Function calls always have parentheses!
  • Practice function calls
  • Complete Codecademy - Taking a Vacation

Archives