Difference between revisions of "IB Computer Science 1"

From WLCS
Line 45: Line 45:
 
* Complete [[Turtle - Looping Assignment]] (practice loops with turtle)
 
* Complete [[Turtle - Looping Assignment]] (practice loops with turtle)
  
== Monday - Tuesday (9/29/14 - 9/30/14) ==
+
== Archives ==
'''Warmup:'''
+
* [[IBCS1 - 1415 - September]]
# Prompt the user for a username and password
 
# Check if the username and password are correct (your choice as to what they are)
 
# If the login is successful, then print a message saying so
 
# Else, allow the user to try 5 times total before printing a message that says that they are locked out
 
 
 
'''Agenda:'''
 
* Demo [[Looping Exercises]]
 
* Work on [[Monte Carlo Calculation of Pi]]
 
* Introduction to Python Turtle
 
** [http://docs.python.org/py3k/library/turtle.html Python turtle library]
 
* Work on [[Turtle - Moving and Drawing Assignment]] (practice with function calls)
 
 
 
== Thursday - Friday (9/25/14 - 9/26/14) ==
 
'''Agenda:'''
 
* Demo missing assignments
 
* Work on [[Looping Exercises]]
 
* Work on [[Monte Carlo Calculation of Pi]]
 
 
 
== Tuesday - Wednesday (9/23/14 - 9/24/14) ==
 
'''Agenda:'''
 
* Demo [[Prime numbers assignment]] if you have not already done so
 
* Complete [[Guessing Game Assignment]]
 
* Work on [[Looping Exercises]]
 
 
 
== Friday - Monday (9/19/14 - 9/22/14) ==
 
'''Warmup:'''
 
* Write a loop that prints out all the even numbers from 80 down to 18
 
 
 
'''Agenda:'''
 
* Looping practice Review
 
** 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
 
 
 
* Upcoming assignments
 
** [[Prime numbers assignment]]
 
** [[Guessing Game Assignment]]
 
** [[Looping Exercises]]
 
 
 
== Wednesday - Thursday (9/17/14 - 9/18/14) ==
 
'''Agenda:'''
 
* Demo [[Geek Flow Chart Assignment]]
 
* Introduction to Loops
 
* Codecademy
 
*# Sign up for an account on [http://www.codecademy Codecademy] if you do not already have one
 
*# Read and complete the section on [http://www.codecademy.com/courses/python-beginner-en-cxMGf/0/1?curriculum_id=4f89dab3d788890003000096 while loops] through "break" (#1-6).  Do not do while/else
 
* 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
 
 
 
* Upcoming assignments
 
** [[Prime numbers assignment]]
 
** [[Guessing Game Assignment]]
 
** [[Looping Exercises]]
 
 
 
== Monday - Tuesday (9/15/14 - 9/16/14) ==
 
'''Warmup:'''
 
* Make sure you've turned in everything to [http://classroom.google.com Google Classroom]
 
 
 
'''Agenda:'''
 
* Programming Challenges
 
** [http://www.reddit.com/r/learnprogramming/comments/2a9ygh/1000_beginner_programming_projects_xpost/ 1000+ Beginner Programming Projects]
 
** [http://www.reddit.com/r/dailyprogrammer Daily Programmer]
 
* Introduction to Conditionals
 
** if statement
 
** if-else statement
 
** nested if statements
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
 
 
== Thursday - Friday (9/11/14 - 9/12/14) ==
 
'''Warmup:'''
 
# Write a program to calculate the area of a trapezoid
 
# Prompt the user for base 1
 
# Prompt the user for base 2
 
# Prompt the user for the height
 
# Calculate and print out the area
 
 
 
'''Agenda:'''
 
* Complete and demo [[Quadratic Formula Assignment]]
 
* Introduction to Conditionals
 
** Comparison operators (<, >, <=, >=, ==, !=)
 
** Boolean values: True, False
 
** [[Comparison operators assignment]]
 
** [[Media:BooleanLogic.ppt]]
 
** [[Logical operators assignment]]
 
** if statement
 
** if-else statement
 
** nested if statements
 
* [[MPAA calculator assignment]]
 
* [[Geek Flow Chart Assignment]]
 
 
 
== 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
 
*# Prompt the user to enter a noun and store it in a variable named '''noun'''
 
*# Prompt the user to enter a verb and store it in a variable named '''verb'''
 
*# Prompt the user to enter another noun and store it in a variable named '''noun2'''
 
*# Print out a message that contains noun, verb, and noun2
 
* Circle calculations exercise
 
*# Prompt the user to enter the radius of a circle (this should be a float)
 
*# Calculate and print out the circumference of the circle.  Make sure your output looks like: "Circumference: ###"
 
*# Calculate and print out the area of the circle.  Make sure your output looks like: "Area: ###"
 
* Slope calculation exercise
 
*# Prompt the user to enter x1 (this should be a float)
 
*# Prompt the user to enter y1 (this should be a float)
 
*# Prompt the user to enter x2 (this should be a float)
 
*# Prompt the user to enter y2 (this should be a float)
 
*# 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:'''
 
# Turn in your syllabus if you have it signed
 
# [http://classroom.google.com Google Classroom]
 
#* Sign into your APS Google accounts
 
#* Class code: xkh7hhq
 
# Submit your Hello World program from last class to Google Classroom
 
 
 
'''Agenda:'''
 
* [[Media:BasicProgrammingTerms.ppt]]
 
* Introduction to Values, Types, and Variables
 
** [[Media:ValuesTypesVariables.ppt]]
 
** [[Values, Types, and Variables Identification assignment]]
 
* Input and Output
 
** [[Media:PythonInputOutput.ppt]]
 
* Mad Libs exercise
 
*# Prompt the user to enter a noun and store it in a variable named '''noun'''
 
*# Prompt the user to enter a verb and store it in a variable named '''verb'''
 
*# Prompt the user to enter another noun and store it in a variable named '''noun2'''
 
*# Print out a message that contains noun, verb, and noun2
 
* Circle calculations exercise
 
*# Prompt the user to enter the radius of a circle (this should be a float)
 
*# Calculate and print out the circumference of the circle.  Make sure your output looks like: "Circumference: ###"
 
*# Calculate and print out the area of the circle.  Make sure your output looks like: "Area: ###"
 
* Slope calculation exercise
 
*# Prompt the user to enter x1 (this should be a float)
 
*# Prompt the user to enter y1 (this should be a float)
 
*# Prompt the user to enter x2 (this should be a float)
 
*# Prompt the user to enter y2 (this should be a float)
 
*# Calculate and print out the slope.  Make sure your output looks like: "Slope: ###"
 
 
 
== Wednesday (9/3/14 - 9/4/14) ==
 
'''Agenda:'''
 
* Complete the [https://docs.google.com/spreadsheet/viewform?key=0ApPgoX5sTp-_cDZfazFTTWJTMnp2TUhKTkpCQmtGUEE Student Survey] if you have not already done so
 
* Introductions
 
* Misc logistics
 
** 20/10 no pass policy
 
** Location of bathrooms
 
** Sign in/out sheets
 
* [[IB Computer Science I Syllabus]]
 
** Signed syllabus sheets due by the end of next week (9/12/14)
 
* [http://classroom.google.com Google Classroom]
 
** Sign into your APS Google accounts
 
** Class code: xkh7hhq
 
* IT Resources for Students (UserID: StudentID# and Password: Birthday)
 
** Google Apps - [http://www.apsva.us/google http://www.apsva.us/google]
 
** Dropbox - [http://www.dropbox.com http://www.dropbox.com]
 
** Others (Skydrive, etc.)
 
* What is computer science?
 
* Introduction to Python
 
** WingIDE 101
 
** [http://en.wikipedia.org/wiki/Hello_world_program Hello world program]
 
** Submit your Hello world program via Google Classroom
 
 
 
== Tuesday (9/2/14) ==
 
* Introductions
 
* Name cards
 
* Guest login
 
** Username: guest
 
** No password (just hit enter)
 
* Complete the [https://docs.google.com/spreadsheet/viewform?key=0ApPgoX5sTp-_cDZfazFTTWJTMnp2TUhKTkpCQmtGUEE Student Survey]
 

Revision as of 03:31, 8 October 2014

Tuesday - Wednesday (10/7/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