Difference between revisions of "IB Computer Science 1"

From WLCS
(Tuesday - Wednesday (10/7/14))
Line 1: Line 1:
 +
== Tuesday (10/14/14) ==
 +
'''Agenda:'''
 +
* Demo missing assignments:
 +
** [[Monte Carlo Calculation of Pi]]
 +
** [[Turtle - Graphing Calculator]]
 +
* Functions Reviewed
 +
** return keyword
 +
* Read section '''6.1''' of [http://openbookproject.net/thinkcs/python/english3e/fruitful_functions.html Fruitful Functions] and pay attention to the '''return''' keyword
 +
* CodingBat Python Functions
 +
*# Go to [http://codingbat.com/ CodingBat] and create an account
 +
*# Login and go to '''prefs->teacher share''' and use [[Image:BuiEmail.bmp]]
 +
*# Complete as many of [http://codingbat.com/python/Warmup-1 Warmup-1] as you can before the end of the period (try not to look up the solutions)
 +
 
== Thursday - Friday (10/9/14 - 10/10/14) ==
 
== Thursday - Friday (10/9/14 - 10/10/14) ==
 
'''Agenda:'''
 
'''Agenda:'''

Revision as of 13:11, 14 October 2014

Tuesday (10/14/14)

Agenda:

Thursday - Friday (10/9/14 - 10/10/14)

Agenda:

Tuesday - Wednesday (10/7/14 - 10/8/14)

Warmup:

  • Execute the code below
  • When prompted, use 100 for x and 200 for y
  • What does each line do? Analyze!
from turtle import *

setup(200, 400)
screensize(200, 400)
x = numinput("X prompt", "Please enter an x")
y = numinput("Y prompt", "Please enter a y")
goto(x,y)
done()

Agenda:

Friday - Monday (10/3/14 - 10/6/14)

Agenda:

Wednesday - Thursday (10/1/14 - 10/2/14)

Warmup:

  • Create a turtle program that draws a staircase across the screen

Agenda:

Archives