Difference between revisions of "IB Computer Science 1"

From WLCS
Line 110: Line 110:
 
** Sophomores and Juniors who are *not* taking exams this year do not have numbers (leave that field on the cover sheet blank)
 
** Sophomores and Juniors who are *not* taking exams this year do not have numbers (leave that field on the cover sheet blank)
 
* Complete [[Advanced Python List Exercises]]
 
* Complete [[Advanced Python List Exercises]]
 
== Thursday - Friday (1/21/16 - 1/29/16) ==
 
* Snowzilla!
 
 
== Wednesday (1/20/16) ==
 
'''Agenda:'''
 
* Demo missing assignments
 
* Complete (Basic) [[Python List Exercises]] and turn it in via Google Classroom
 
* Complete 6 exercises from [http://codingbat.com/python/List-1 List-1]
 
* Complete 3 exercises from [http://codingbat.com/python/List-2 List-2]
 
* Complete [[Advanced Python List Exercises]]
 
 
== Wednesday - Friday (1/13/16 - 1/15/16) ==
 
'''Agenda:'''
 
* Complete [[Morse Code Translator]]
 
* Lists - [[Media:Lists_Python.ppt]]
 
* Complete (Basic) [[Python List Exercises]] and turn it in via Google Classroom
 
** Complete it '''before''' the end of class
 
* Codingbat Sharing
 
*# Login to Codingbat
 
*# Go to prefs->Share To and use [[Image:BuiEmail.bmp]]
 
* Complete 6 exercises from [http://codingbat.com/python/List-1 List-1]
 
* Complete 3 exercises from [http://codingbat.com/python/List-2 List-2]
 
 
== Monday (1/11/16) ==
 
* Group 4 Project Day debrief
 
* Review Dictionaries
 
* Complete [[Morse Code Translator]]
 
 
== Friday (1/8/16) ==
 
* Group 4 Project Day
 
 
== Tuesday - Thursday (1/5/16 - 1/7/16) ==
 
* Turn in Group 4 Project permission slips
 
* Complete [[Python String Exercises]] and submit via Google Classroom
 
* Complete 6 exercises from [http://codingbat.com/python/String-1 String-1]
 
* Complete [[Leet-speak Translator]]
 
* Introduction to Dictionaries
 
* Complete [[Morse Code Translator]]
 
  
 
== Archives ==
 
== Archives ==
 +
* [[IBCS1 - 1516 - January]]
 
* [[IBCS1 - 1516 - December]]
 
* [[IBCS1 - 1516 - December]]
 
* [[IBCS1 - 1516 - November]]
 
* [[IBCS1 - 1516 - November]]
 
* [[IBCS1 - 1516 - October]]
 
* [[IBCS1 - 1516 - October]]
 
* [[IBCS1 - 1516 - September]]
 
* [[IBCS1 - 1516 - September]]

Revision as of 09:19, 29 February 2016

Monday (2/29/16)

Agenda:

  • Python Test - Friday (3/4/16)
    • Variables, values, types
    • Conditionals (if), comparison, logic operators
    • Iteration (looping - while, for)
    • Strings
    • Lists
  • Demo Benford's Law Assignment
  • Introduction to Processing - Python Mode

Tuesday - Thursday (2/23/16 - 2/25/16)

Agenda:

  • File I/O review
  • Demo any missing assignments
  • Benford's Law Assignment
    1. Create a text file that contains a list of 1000 numbers from a naturally occurring data set
    2. Write a python program that reads the file, extracts the first digit of every number, and determines the frequencies of 1-9
    3. Print out the frequencies (percentages) of the numbers 1 through 9

Wednesday - Friday (2/17/16 - 2/19/16)

Agenda:

  • Introduction to File Reading & Writing (Input & Output)
    1. Assume you have a single string containing the entire U.S. Constitution. Calculate and print out the frequency of the word "the"
      • Download the following file: Media:Constitution.txt
      • Hint: There is a useful string function that converts a string to a list of words.
    2. Write a program that generates a textfile with 10000 random numbers from 0-100
    3. Assume you have a single data file with 10000 random numbers from 0 to 100. Print out the frequency of each of the numbers.
    4. Assume you have a list of strings of peoples' full names in random order. Print out an alphabetized list of only the last names.
  • Example code to help read in a file:
# open a text file
file = open("Constitution.txt", "r")

# read all lines in the file and save in the constitution string variable
constitutionStr = file.read()

# close the file
file.close()

print(constitutionStr)
  • Example code to help write to a file:
# open a text file
file = open("output.txt", "w")

# read all lines in the file and save in the constitution string variable
file.write("Hello!\n")
file.write("world!")

# close the file
file.close()

Wednesday - Friday (2/10/16 - 2/12/16)

Agenda:

Monday (2/8/16)

Warmup:

  1. Given numList = [9, 6, 3, 1, 3, 6, 8]
  2. Use a for loop to print out half of each element
  1. Given strList = ["Arlington", "Fairfax", "Falls Church", "Alexandria"]
  2. Use a for loop to print out the first letter of each element

Agenda:

Thursday (2/4/16)

Warmup:

  1. Given the following list: warmupList = [1, 3, 5, 2, 4, 6]
  2. Swap the first and last elements in warmupList (you should use a temp variable)
  3. Be sure to make it so that your code works for ANY list (i.e. any numbers in the list)

Agenda:

Tuesday (2/2/16)

  • StudentVUE has been updated
    • You have until tomorrow to demo missing assignments
    • If you are turning in a missing assignment, you MUST show it to Mr. Bui in person
  • Group 4 Projects
    • DUE TODAY
    • Submit video via Google Classroom
    • Submit hard-copy cover sheets and peer assessments to your teachers
  • IB candidate session numbers
    • http://www.washlee.net/ib
    • Sophomores and Juniors who are *not* taking exams this year do not have numbers (leave that field on the cover sheet blank)
  • Complete Advanced Python List Exercises

Archives