Difference between revisions of "IB Computer Science 2"

From WLCS
 
(855 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
== Thursday - Tuesday (10/6/16 - 10/11/16) ==
+
== [[IBCS2 - Archives]] ==
−
'''Agenda:'''
 
−
* Demo your matrix functions
 
−
* Java Objects
 
−
** [[Media:JavaObjectUsage.pptx]]
 
−
** [[Media:IntroClasses.ppt]]
 
−
** [[Media:OOP.pptx‎]]
 
−
* Point Class assignment walk-through
 
−
*# You will create two java files: '''Point.java''' and '''PointMain.java'''
 
−
*#* '''Point.java''' - the Point class definition will be here
 
−
*#* '''PointMain.java''' - only the main() method will be located here
 
−
*# Declare and initialize the following '''private''' attributes in the Point class
 
−
*#* double x = 0.0
 
−
*#* double y = 0.0
 
−
*# Define two Point() constructors:
 
−
*#* default constructor: Point()
 
−
*#* specific constructor Point(double newX, double newY)
 
−
*# Define the following '''public''' methods in the Point class
 
−
*#* double getX() - returns the x-coordinate
 
−
*#* double getY() - returns the y-coordinate
 
−
*#* void setX(double newX) - sets the x-coordinate to the new x-coordinate parameter
 
−
*#* void setY(double newY) - sets the y-coordinate to the new y-coordinate parameter
 
−
*#* String toString() - returns a String representation of the Point object
 
−
*# Go to your PointMain.java file to test out your Point class
 
−
*# In the main method, create several new instances of Point objects
 
−
*# Print out each of your Point objects
 
−
*# Define a static method in PointMain.java named '''double slope(Point p1, Point p2)''' - returns the slope between p1 and p2
 
−
*# Test and print out your slope method when you use it with your instantiated Point objects in the main() method
 
−
* Complete and demo the following:
 
−
** [[Person class lab assignment]]
 
−
** [[Car class lab assignment]]
 
−
** [[Vector class lab assignment]]
 
−
 
 
−
== Tuesday (10/4/16) ==
 
−
'''Agenda:'''
 
−
* Two-Dimensional Array Assignment
 
−
*# Write a method (function): '''matrixAdd(m1, m2)''' that returns a new matrix that is the sum of m1 and m2
 
−
*#* Be sure to check if the two matrices are the same size (if not, then return '''null''')
 
−
*# Write a method (function): '''matrixMult(m1, m2)''' that returns the product of matrix m1 and m2
 
−
*#* Be sure to check the rules of matrix multiplication
 
−
*#* Return a '''null''' matrix if their sizes do not allow for proper multiplication
 
−
 
 
−
== Friday (9/30/16) ==
 
−
'''Agenda:'''
 
−
* Demo missing sorting algorithms (SelectionSort, BubbleSort)
 
−
* Quicksort Overview
 
−
* Two-Dimensional Arrays and Nested Loops
 
−
*# Accessing all of the individual elements of a two-dimensional list
 
−
*# Prompt the user to construct a two-dimensional list
 
−
*## Prompt for the number of rows
 
−
*## Prompt for the number of columns
 
−
*## Prompt the user for each number in the two-dimensional list
 
−
*# Write the function '''matrixPrint(m)'''
 
−
 
 
−
== Monday - Wednesday (9/26/16 - 9/28/16) ==
 
−
'''Warmup:'''
 
−
# Do the following warmup if you have completed the [[JavaSearchAssignment.java]]
 
−
# Create a 2-3 person group
 
−
# Take some (~6) playing cards
 
−
# Lay them out randomly in a row (out of order)
 
−
# As a team, discuss an algorithm to sort them
 
−
# You are only allowed to swap cards (i.e. they cannot be removed or added to a new array)
 
−
# Sort them in numerical order (Ace is high)
 
−
# Write down the basic steps to your algorithm
 
−
 
 
−
'''Agenda:'''
 
−
* Demo [[JavaSearchAssignment.java]]
 
−
* Introduction to Sorting Activity
 
−
* [[Media:Sorting.pptx]]
 
−
* Complete [[JavaSelectionSortAssignment.java]]
 
−
* Complete [[JavaBubbleSortAssignment.java]]
 
−
 
 
−
== Thursday (9/22/16) ==
 
−
'''Warmup:'''
 
−
* Demo [[Java Arrays Assignment]] if you have not already done so
 
−
 
 
−
'''Agenda:'''
 
−
* Searching - [[Media:Searching.pptx]]
 
−
** Linear Search
 
−
** Binary Search
 
−
* Complete [[JavaSearchAssignment.java]]
 
−
 
 
−
== Back to School Night ==
 
−
* [https://docs.google.com/presentation/d/1PoA335gHnDCoWpGEpgHLDDaVzxjZ7fdE-oDaQaiENaQ/edit?usp=sharing Back to School Night Presentation]
 
−
 
 
−
== Tuesday (9/20/16) ==
 
−
'''Agenda:'''
 
−
* CodingBat reminder
 
−
** String-1 & String-2
 
−
** Array-1 & Array-2
 
−
* [[Java Arrays Assignment]]
 
−
 
 
−
'''Homework:'''
 
−
* Complete [[Java Arrays Assignment]] if you did not do so in class
 
−
 
 
−
== Friday (9/16/16) ==
 
−
'''Agenda:'''
 
−
* Summer assignment reminder
 
−
* Electronic syllabus agreement form due today
 
−
* CodingBat String-1 & String-2 reminder
 
−
* Review Java Arrays
 
−
** [[Media:JavaArrays_Basic.ppt]]
 
−
** Additional review material: [[Media:IntroArrays.ppt]]
 
−
** [http://codingbat.com/java/Warmup-2 CodingBat Array Warmup] (as a class)
 
−
*** arrayCount9
 
−
*** array123
 
−
*** noTriples
 
−
** Complete the following exercises in [http://codingbat.com/java/Array-1 CodingBat: Array-1]
 
−
*** no23
 
−
*** makeMiddle
 
−
*** swapEnds
 
−
** Complete the following exercises in [http://codingbat.com/java/Array-2 CodingBat: Array-2]
 
−
*** sum67
 
−
*** matchUp
 
−
* [[Java Arrays Assignment]]
 
−
 
 
−
'''Homework:'''
 
−
# Complete the syllabus agreement form with your parent
 
−
# Complete the CodingBat: Array-1 & Array-2 exercises listed above (from class)
 
−
 
 
−
== Wednesday (9/14/16) ==
 
−
'''Agenda:'''
 
−
* Demo [[Guessing Game Assignment]] in Java
 
−
* [http://codingbat.com/java/Warmup-1 CodingBat: Warmup-1] class practice & review
 
−
* for loop review
 
−
* Java String review
 
−
** [[Media:JavaStrings_Basic.ppt]]
 
−
* [http://codingbat.com/java/Warmup-2 CodingBat: Warmup-2] class practice & review
 
−
* Complete the following exercises in [http://codingbat.com/java/String-1 CodingBat: String-1]
 
−
** makeOutWord
 
−
** extraEnd
 
−
** firstTwo
 
−
* Complete the following exercises in [http://codingbat.com/java/String-2 CodingBat: String-2]
 
−
** doubleChar
 
−
** countHi
 
−
 
 
−
'''Homework:'''
 
−
# Complete the syllabus agreement form with your parent
 
−
# Complete the CodingBat: String-1 & String-2 exercises listed above (from class)
 
−
 
 
−
== Monday (9/12/16) ==
 
−
'''Agenda:'''
 
−
* Java Review - [http://introcs.cs.princeton.edu/java/11cheatsheet/ Java Cheatsheet]
 
−
** Introduction to NetBeans IDE
 
−
** Simple main method
 
−
** Variables, types, values
 
−
** Keyboard input w/ Scanner
 
−
** Circle circumference and area calculator
 
−
** if statements
 
−
** while and for loops
 
−
** return statements
 
−
* Recreate the [[Guessing Game Assignment]] in Java
 
−
** You may need to look up how to do random numbers in Java
 
−
** You can always refer to the [http://introcs.cs.princeton.edu/java/11cheatsheet/ Java Programming Cheatsheet]
 
−
** Demo to Mr. Bui before the end of class
 
−
* Complete 5 exercises from [http://codingbat.com/java/Warmup-1 CodingBat: Warmup-1]
 
−
* Complete 3 exercises from [http://codingbat.com/java/Warmup-2 CodingBat: Warmup-2]
 
−
 
 
−
'''Homework:'''
 
−
# Go to Syllabus (on the left)
 
−
# Read it
 
−
# Complete the agreement form with your parent (you will need your APS Google login)
 
−
 
 
−
== Thursday (9/8/16) ==
 
−
* Complete the [https://docs.google.com/spreadsheet/viewform?key=0ApPgoX5sTp-_cDZfazFTTWJTMnp2TUhKTkpCQmtGUEE Student Survey]
 
−
* Misc logistics
 
−
** 20/10 no pass policy
 
−
** Location of bathrooms
 
−
** Sign in/out sheets
 
−
** Mr. Bui has C Lunch (3rd Lunch)
 
−
* [[IB Computer Science II Syllabus]]
 
−
** Complete online syllabus agreement form by the end of next week (9/16/16)
 
−
* [http://classroom.google.com Google Classroom]
 
−
** Period 4 - sbehri
 
−
** Period 6 - fvhhrtk
 
−
* [[IBCS2 Summer Assignment]] - due by Friday (9/9/16) - before Saturday morning
 
−
* Java Review - [http://introcs.cs.princeton.edu/java/11cheatsheet/ Java Cheatsheet]
 
−
** Introduction to NetBeans IDE
 
−
** Simple main method
 
−
** Variables, types, values
 
−
** Keyboard input w/ Scanner
 
−
** Circle circumference and area calculator
 
−
** if statements
 
−
** while and for loops
 
−
* Recreate the [[Guessing Game Assignment]] in Java
 
−
** You may need to look up how to do random numbers in Java
 
−
** You can always refer to the [http://introcs.cs.princeton.edu/java/11cheatsheet/ Java Programming Cheatsheet]
 
−
 
 
−
'''Homework:'''
 
−
* [[IBCS2 Summer Assignment]] - due by Friday (9/9/16) - before Saturday morning
 
−
* Complete [[IB Computer Science II Syllabus]] agreement form by the end of next week (9/16/16)
 
−
 
 
−
== Tuesday (9/6/16) ==
 
−
* Introductions
 
−
* [[IBCS2 Summer Assignment]]
 
−
** Submit via Google Classroom by the end of the week
 
−
* [http://classroom.google.com Google Classroom]
 
−
** Period 4 - sbehri
 
−
** Period 6 - fvhhrtk
 
−
 
 
−
'''Homework:'''
 
−
# Go to Syllabus (on the left)
 
−
# Read it
 
−
# Complete the agreement form with your parent (you will need your APS Google login)
 
−
 
 
−
== Summer ==
 
−
* [[IBCS2 Summer Assignment]]
 
−
 
 
−
== Archives ==
 
−
* [[IBCS2 - 1516 - June]]
 
−
* [[IBCS2 - 1516 - May]]
 
−
* [[IBCS2 - 1516 - April]]
 
−
* [[IBCS2 - 1516 - March]]
 
−
* [[IBCS2 - 1516 - February]]
 
−
* [[IBCS2 - 1516 - January]]
 
−
* [[IBCS2 - 1516 - December]]
 
−
* [[IBCS2 - 1516 - November]]
 
−
* [[IBCS2 - 1516 - October]]
 
−
* [[IBCS2 - 1516 - September]]
 

Latest revision as of 07:28, 13 September 2023