Difference between revisions of "IB Computer Science 1"

From WLCS
(Wednesday - Thursday (3/8/17 - 3/9/17))
 
(859 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Wednesday - Thursday (3/8/17 - 3/9/17) ==
+
== [[IBCS1 - Archives]] ==
'''Agenda:'''
 
* [http://arlingtonva.libcal.com/event/3006500 Teen Tech Help @ Central Library, Thursday (3/9/17), 3:30-5pm]
 
* Job opportunity w/ Mrs. Carolyn Carlson (non-profit consulting)
 
* Python -> Java Review
 
** Add looping (while, for) to Java notes
 
* Convert your Python code for the following programs to Java:
 
**[https://docs.google.com/document/d/1RCVlD8xOl4mzuIm2kxQUtyccOOJa_6bBFVa3S57Sj_E/edit?usp=sharing Project: Simple Paint]
 
** [https://docs.google.com/document/d/1xRSA_Ti8l5002jcAftcUtCTdujCojghzoTpUZwJvHQ4/edit?usp=sharing Animation: Bouncing Ball]
 
** [https://docs.google.com/document/d/1NyUifJyiIxKupLXLLlbIcLB4SUCB_mLQs4GyhSaMSIw/edit?usp=sharing Project: Ping (1-player Pong)]
 
 
 
== Monday - Tuesday (3/6/17 - 3/7/17) ==
 
'''Agenda:'''
 
* [http://arlingtonva.libcal.com/event/3006500 Teen Tech Help @ Central Library, Thursday (3/9/17), 3:30-5pm]
 
* Job opportunity w/ Mrs. Carolyn Carlson (non-profit consulting)
 
* Python -> Java
 
** Python vs. Java Reference
 
** Java syntax differences
 
* Convert the following Processing labs from Python to Java
 
** [https://docs.google.com/document/d/1-TyjK48PtO_dgBDLRxKOk8zvOReC_A5196skWzCI0wk/edit?usp=sharing Processing Lab 1: My First Sketch]
 
** [https://docs.google.com/document/d/1Rlt_UvfeGlMgN3upOR4rF9-M9w72CfH3aJbot_6_Tk0/edit?usp=sharing Processing House Assignment]
 
** [https://docs.google.com/document/d/1yxestu4zbLljylbwmSUnskOcwiTnwf-wOTFvyHF1xoo/edit?usp=sharing Processing My First Animation]
 
** [https://docs.google.com/document/d/1RCVlD8xOl4mzuIm2kxQUtyccOOJa_6bBFVa3S57Sj_E/edit?usp=sharing Processing Project: Simple Paint]
 
*** You will need to complete and demo Simple Paint's conversion for credit
 
** [https://docs.google.com/document/d/1xRSA_Ti8l5002jcAftcUtCTdujCojghzoTpUZwJvHQ4/edit?usp=sharing Animation: Bouncing Ball]
 
*** You will need to complete and demo Bouncing Ball's conversion for credit
 
 
 
== Wednesday - Friday (3/1/17 - 3/3/17) ==
 
'''Agenda:'''
 
* [http://arlingtonva.libcal.com/event/3006500 Teen Tech Help @ Central Library, Thursday (3/9/17), 3:30-5pm]
 
** Volunteer to help adults solve their tech problems
 
** Easy service hours!
 
** Mr. Bui will provide pizza
 
* Job opportunity w/ Mrs. Carolyn Carlson (non-profit consulting)
 
** Part-time paid opportunity through her firm
 
** Need for MS Excel skills, with occasional Adobe Photoshop
 
** Prepare a resume and e-mail it to Mr. Bui to apply.  He will forward all resumes to Mrs. Carlson
 
* File Reading/Writing (Input/Output) Review:
 
** [https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files Python File Methods/Functions]
 
** [https://docs.python.org/3.6/library/stdtypes.html#string-methods Python String Methods/Functions]
 
 
 
* Complete the File R/W (I/O) Exercises:
 
*# Read a file with first and last names of people. Extract all their initials, such that first and last initials are combined per person (Paul Bui -> PB). Write/Output that list of initials to a file
 
*# Write a program that generates a textfile with 10000 random numbers from 0-100
 
*# Read a file with 10000 random numbers from 0 to 100.  Print out the frequency of each of the numbers (Hint: Use a list to track the frequencies)
 
 
 
== Monday - Tuesday (2/27/17 - 2/28/17) ==
 
'''Agenda:'''
 
* [http://arlingtonva.libcal.com/event/3006500 Teen Tech Help @ Central Library, Thursday (3/9/17), 3:30-5pm]
 
** Volunteer to help adults solve their tech problems
 
** Easy service hours!
 
** Mr. Bui will provide pizza
 
* File Reading/Writing (Input/Output) Review:
 
** [https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files Python File Methods/Functions]
 
** [https://docs.python.org/3.6/library/stdtypes.html#string-methods Python String Methods/Functions]
 
 
 
* Complete the File R/W (I/O) Exercises:
 
*# Read a file with first and last names of people. Extract all their initials, such that first and last initials are combined per person (Paul Bui -> PB). Write/Output that list of initials to a file
 
*# Write a program that generates a textfile with 10000 random numbers from 0-100
 
*# Read a file with 10000 random numbers from 0 to 100.  Print out the frequency of each of the numbers (Hint: Use a list to track the frequencies)
 
 
 
* Example code to help read in a file:
 
<syntaxhighlight lang="Python">
 
# 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()
 
 
 
# read all lines from the file and save them to a listlist
 
constitutionList = file.readlines()
 
 
 
# close the file
 
file.close()
 
 
 
print(constitutionStr) # What does it print?  Comment this line out and uncomment the next line
 
#print(constitutionList)
 
</syntaxhighlight>
 
 
 
* Example code to help write to a file:
 
<syntaxhighlight lang="Python">
 
# 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()
 
</syntaxhighlight>
 
 
 
== Thursday - Friday (2/23/17 - 2/24/17) ==
 
* Introduction to [https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files File Reading & Writing (Input & Output)]
 
*# 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.
 
 
 
== Tuesday - Wednesday (2/21/17 - 2/22/17) ==
 
'''Agenda:'''
 
* Assignments thus far:
 
** [[E-mail Harvester Assignment]]
 
** (Basic) [[Python List Exercises]]
 
** 4 exercises from [http://codingbat.com/python/List-1 List-1 (no loops)]
 
** 2 exercises from [http://codingbat.com/python/List-2 List-2 (w/ loops)]
 
* Complete and [[Advanced Python List Exercises]]
 
** The last exercise is an optional challenge
 
** You should be able to explain your code and how it works
 
 
 
== Thursday - Friday (2/16/17 - 2/17/17) ==
 
'''Agenda:'''
 
* Assignments thus far:
 
** [[E-mail Harvester Assignment]]
 
** (Basic) [[Python List Exercises]]
 
** 4 exercises from [http://codingbat.com/python/List-1 List-1 (no loops)]
 
** 2 exercises from [http://codingbat.com/python/List-2 List-2 (w/ loops)]
 
* Work on [[Advanced Python List Exercises]]
 
 
 
== Monday - Wednesday (2/13/17 - 2/15/17) ==
 
'''Agenda:'''
 
* Assignments thus far:
 
** [[E-mail Harvester Assignment]]
 
** (Basic) [[Python List Exercises]]
 
* Complete and demo today:
 
** Complete 4 exercises from [http://codingbat.com/python/List-1 List-1 (no loops)]
 
** Complete 2 exercises from [http://codingbat.com/python/List-2 List-2 (w/ loops)]
 
* Work on [[Advanced Python List Exercises]]
 
 
 
== Thursday - Friday (2/9/17 - 2/10/17) ==
 
'''Agenda:'''
 
* Demo missing assignment(s)
 
* Computer science course options for next year
 
* Introduction to Lists
 
** [[Media:Lists_Python.ppt]]
 
* Complete (Basic) [[Python List Exercises]] and turn it in via Google Classroom
 
* Complete 4 exercises from [http://codingbat.com/python/List-1 List-1 (no loops)]
 
* Complete 2 exercises from [http://codingbat.com/python/List-2 List-2 (w/ loops)]
 
* Complete [[Advanced Python List Exercises]]
 
 
 
== Tuesday - Wednesday (2/7/17 - 2/8/17) ==
 
'''Agenda:'''
 
* Demo [[E-mail Harvester Assignment]]
 
* Introduction to Lists
 
** [[Media:Lists_Python.ppt]]
 
* Complete (Basic) [[Python List Exercises]] and turn it in via Google Classroom
 
* Complete 4 exercises from [http://codingbat.com/python/List-1 List-1 (no loops)]
 
* Complete 2 exercises from [http://codingbat.com/python/List-2 List-2 (w/  loops)]
 
* Complete [[Advanced Python List Exercises]]
 
 
 
== Wednesday - Monday (2/1/17 - 2/6/17) ==
 
* Complete and demo [[E-mail Harvester Assignment]]
 
** Work on the advanced challenges
 
 
 
== Archives ==
 
* [[IBCS1 - 1617 - January]]
 
* [[IBCS1 - 1617 - December]]
 
* [[IBCS1 - 1617 - November]]
 
* [[IBCS1 - 1617 - October]]
 
* [[IBCS1 - 1617 - September]]
 
* [[IBCS1 - 1516]]
 

Latest revision as of 08:28, 13 September 2023