Difference between revisions of "IB Computer Science 1"

From WLCS
 
Line 1: Line 1:
== Tuesday - Thursday (11/17/15 - 11/19/15) ==
+
== [[IBCS1 - Archives]] ==
* Review [[Media:PythonFunctions.pptx]]
 
* Demo [[Taylor Series Pi and e]]
 
* Demo [[Python Functions Assignment]]
 
* Introduction to Python Turtle
 
** [http://docs.python.org/py3k/library/turtle.html Python turtle library]
 
* Complete [[Turtle - Moving and Drawing Assignment]] (practice with function calls)
 
* Complete [[Turtle - House Function Assignment]] (practice defining a function)
 
* Complete [[Turtle - Looping Assignment]] (practice loops with turtle)
 
 
 
== Friday (11/12/15) ==
 
* Complete [[Taylor Series Pi and e]]
 
* Return to Functions
 
** Read through [[Media:PythonFunctions.pptx]]
 
** '''return''' keyword
 
** Complete [[Python Functions Assignment]]
 
 
 
== Tuesday (11/10/15) ==
 
'''Agenda:'''
 
* Demo [[Guessing Game Assignment]]
 
* Demo [[Monte Carlo Calculation of Pi]]
 
* Complete [[Taylor Series Pi and e]]
 
 
 
== Wednesday - Friday (11/4/15 - 11/6/15) ==
 
'''Agenda:'''
 
* Demo [[Prime numbers assignment]]
 
* Complete [[Guessing Game Assignment]]
 
* Work on [[Monte Carlo Calculation of Pi]]
 
 
 
== Wednesday - Friday (10/28/15 - 10/30/15) ==
 
'''Warmup:'''
 
# Create a list of all the different types of errors that you have made so far (e.g. forgetting the colon at the end of an if statement)
 
# Be prepared to share your list to the class.  We will be creating a "Common Programming Mistakes" document
 
 
 
'''Agenda:'''
 
* After fixing syntax errors...what happens next? DEBUG!
 
*# Read every word of the directions
 
*# Read every word of the directions
 
*# Read every word of the directions
 
*# Read every word of the directions
 
*# Read every word of the directions
 
*# Read your code character by character
 
*# Read your code line by line
 
*# Imagine the code and its variables as if it's running (write down variables as they change -- sorry, but your brain is not perfect!)
 
*# Repeat Steps #6-8 several times
 
*# Set breakpoints and run the debugger (only after you have read every one of your lines over and over again)
 
* [https://docs.google.com/document/d/10o5Xjo5R2NfqPXw1Qfn3oy1k7inFaJqxzcNPchFtzR8/edit?usp=sharing Lab 13: Harvest the Field]
 
* [https://docs.google.com/document/d/1rZ80zjrQyysSdcLy9fphxg41v9gXV9pkwGAXtKAvl84/edit?usp=sharing Lab 14: Clear the Path]
 
* [[Prime numbers assignment]]
 
 
 
== Monday (10/26/15) ==
 
'''Warmup:'''
 
* With a partner, discuss and write down your notes. Describe the situation that would best be resolved by each of the following:
 
*# Using a variable
 
*#* Example: Whenever you need to "remember" or keep track of some information
 
*# Defining and calling a function
 
*# Using an if statement
 
*# Using an if-else statement
 
*# Using a while loop
 
*# Using a while loop with a loop counter variable
 
 
 
'''Agenda:'''
 
* [https://docs.google.com/document/d/10o5Xjo5R2NfqPXw1Qfn3oy1k7inFaJqxzcNPchFtzR8/edit?usp=sharing Lab 13: Harvest the Field]
 
* [https://docs.google.com/document/d/1rZ80zjrQyysSdcLy9fphxg41v9gXV9pkwGAXtKAvl84/edit?usp=sharing Lab 14: Clear the Path]
 
 
 
== Thursday (10/22/15) ==
 
'''Agenda:'''
 
* [https://docs.google.com/document/d/1hsnzDu0GQ3aAsZcDzVD_rpl5CiukI9yJdSxADtHO9X0/edit?usp=sharing Lab 12: Collect Them All]
 
* [https://docs.google.com/document/d/10o5Xjo5R2NfqPXw1Qfn3oy1k7inFaJqxzcNPchFtzR8/edit?usp=sharing Lab 13: Harvest the Field]
 
 
 
== Tuesday (10/20/15) ==
 
'''Agenda:'''
 
* [https://docs.google.com/document/d/1R_Qd7nCcXNGyEtQfwUE1gCEmGhd7M_aaPCO3wuou4h4/edit?usp=sharing Lab 11: Maze Solver]
 
* While Loop concepts
 
** counter variables
 
** update operators (+=, -=, *=, /=, %=)
 
* While Loop practice
 
*# Write a loop that prints 0 to 10
 
*# Write a loop that prints 10 to 0
 
*# Write a loop that prints from 19 to 77
 
*# Write a loop that prints the first 50 even numbers
 
*# Prompt a user for a number N.  Write a loop that then prints out the first N even numbers (Hint: Use multiple variables)
 
* [https://docs.google.com/document/d/1hsnzDu0GQ3aAsZcDzVD_rpl5CiukI9yJdSxADtHO9X0/edit?usp=sharing Lab 12: Collect Them All]
 
 
 
== Wednesday - Friday (10/14/15 - 10/16/15) ==
 
'''Agenda:'''
 
* [http://www.apsva.us/domain/2011 APS PRIME Internship Program] - see Ms. Burgos for more information
 
* [http://www.doe.virginia.gov/instruction/governors_school_programs/summer_residential/index.shtml VA Governor's School - Summer Residential Programs] - see Ms. Burgos for more information
 
* Volunteer & job opportunities for juniors or seniors (if interested, come see Mr. Bui):
 
** Ms. Carlson (PTA member)
 
*** Requirement: HTML skills, general I.T. skills
 
*** Paid work on various projects for non-profit clients: voter registration, e-mail broadcasting, fundraising website maintenance, Facebook page maintenance
 
** Mr. Goldstein (school board candidate)
 
*** Requirement: general I.T. skills
 
*** Volunteer work on various I.T. projects: e-mail broadcasting, data entry
 
* Introducing the Debugger
 
*# Load your Lab3.py code
 
*# Set a debug breakpoint at the line where the world is created (clicking on the left gray gutter will leave a red dot)
 
*# Hit the debug button (ladybug)
 
*# What happens? The code should execute, but stop at the debug breakpoint
 
*# You may now use the debug stepping buttons:
 
*## Step-into (arrow into box) - executes current line and steps into any function calls
 
*## Step-over (arrow over box) - executes current line and goes to next one (does *not* enter function calls)
 
*## Step-out of (arrow out of box) - steps out of the current function call
 
* [https://docs.google.com/document/d/1vJ30Qp_CzcTwMsuZMjAn0e6a3Nce-5fNEHeZlGBbBc4/edit?usp=sharing Lab 10: Lab 2 Redo]
 
* [https://docs.google.com/document/d/1R_Qd7nCcXNGyEtQfwUE1gCEmGhd7M_aaPCO3wuou4h4/edit?usp=sharing Lab 11: Maze Solver]
 
 
 
== Friday (10/9/15) ==
 
'''Warmup:'''
 
* Think about the following questions (you may discuss with a partner):
 
*# What is the purpose of a password for a login (authentication) system?
 
*# Why do password systems require a minimum password length (e.g. 8 characters or more)?
 
*# Why do password systems require the use of both upper and lowercase characters as well as special characters (e.g. !@#$%^&*)?
 
*# Do all password systems have identical password requirements?
 
*# What happens when people have too many different passwords?
 
 
 
'''Agenda:'''
 
* Cybersecurity - password authentication attacks
 
* Revisit '''warmup_10_5_15.py'''
 
*# Copy and paste the code from '''warmup_10_5_15.py''' into a new file named '''while_login.py'''
 
*# We will walk through different ways to improve our password system
 
*# First, let's allow the user to retry logins using a while loop
 
*# Second, let's prevent known password attacks using a while loop
 
* while loops
 
** [[Media:PythonWhileLoops.pptx]]
 
* [https://docs.google.com/document/d/1mmP0-7Ql2VcRCCsBS7H4SPTAY9cX_TBo3CIEvkimRxo/edit?usp=sharing Lab 8: Introducing the While Loop]
 
* [https://docs.google.com/document/d/1Opwn1Uu2MlDteFshAnjtpB7Q5tFsd6ZgWSkhayHZiNw/edit?usp=sharing Lab 9: Simplifying Repetitive Statements]
 
 
 
== Wednesday (10/7/15) ==
 
'''Agenda:'''
 
* Complete [https://docs.google.com/document/d/1b5PcudfszLRpoXL8KFQR7YpCvXxivelSuTZZHHBASZg/edit?usp=sharing Lab 7: Functions & Conditionals]
 
* Introduction to Iteration
 
* while loops
 
** [[Media:PythonWhileLoops.pptx]]
 
* [https://docs.google.com/document/d/1mmP0-7Ql2VcRCCsBS7H4SPTAY9cX_TBo3CIEvkimRxo/edit?usp=sharing Lab 8: Introducing the While Loop]
 
* [https://docs.google.com/document/d/1Opwn1Uu2MlDteFshAnjtpB7Q5tFsd6ZgWSkhayHZiNw/edit?usp=sharing Lab 9: Simplifying Repetitive Statements]
 
 
 
== Monday (10/5/15) ==
 
'''Warmup:'''
 
# Create a new file named warmup_10_5_15.py
 
# Prompt the user for a username and store it in a variable named username
 
# Prompt the user for a password and store it in a variable named password
 
# Write an if-else-statement that checks if the username matches "wlcs" and the password matches "awesome"
 
# Print out "Login successful" if the username and password are correct, and "Login rejected" otherwise
 
 
 
'''Agenda:'''
 
* Complete [https://docs.google.com/document/d/1b5PcudfszLRpoXL8KFQR7YpCvXxivelSuTZZHHBASZg/edit?usp=sharing Lab 7: Functions & Conditionals]
 
 
 
== Thursday (10/1/15) ==
 
'''Warmup:'''
 
* Go to Google Classroom and check if you have turned in every lab assignment
 
 
 
'''Agenda:'''
 
* Back to School Night Debrief
 
* Period 1 - Complete Labs 5 & 6
 
* Introduction to Conditionals
 
** Comparison operators (<, >, <=, >=, ==, !=)
 
** Boolean values: True, False
 
** [[Comparison operators assignment]]
 
** Logic operators: and, or, not
 
** [[Media:BooleanLogic.ppt]]
 
** [[Logical operators assignment]]
 
** if statement
 
*** [[Media:PythonIfStatements.pptx]]
 
** if-else statement
 
** nested if statements
 
* Letter Grade Calculator
 
*# Prompt the user for a number (0-100) (if you don't remember, look at past notes and lectures)
 
*# Use if-statements, comparison operators, and logical operators (and, or, not)
 
*# Print out the appropriate letter grade for the number (A, B+, B, C+, C, D+, D, E)
 
* Menu System
 
*# Find a fast food menu that lists different items and their caloric counts
 
*# Print out a menu of 5 of those items
 
*# Prompt the user to make a choice of one of the menu items
 
*# Using if statements, determine what choice the user made, and print out the calories in the order
 
 
 
== Archives ==
 
* [[IBCS1 - 1516 - September]]
 

Latest revision as of 08:28, 13 September 2023