Difference between revisions of "IB Computer Science 2"

From WLCS
 
(849 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Monday (10/17/16) ==
+
== [[IBCS2 - Archives]] ==
'''Agenda:'''
 
* Mr. Bui has [https://courts.arlingtonva.us/circuit-court/jury-duty/ jury duty]
 
* Use the time in class to work on any missing assignments (e.g. MatrixMult, Person, Car, Vector, etc.)
 
* If you have no missing assignments, then you should work on your [[Internal Assessment]]
 
 
 
== Thursday (10/13/16) ==
 
'''Agenda:'''
 
* Female CS Students Scholarship Opportunity
 
** [https://www.aspirations.org/participate/high-school NCWIT: Aspirations in Computing]
 
* Complete and demo the following:
 
** [[Person class lab assignment]]
 
** [[Car class lab assignment]]
 
** [[Vector class lab assignment]]
 
 
 
'''Homework:'''
 
* Complete the following if you did not finish in class!
 
** [[Person class lab assignment]]
 
** [[Car class lab assignment]]
 
** [[Vector class lab assignment]]
 
 
 
== Thursday - Tuesday (10/6/16 - 10/11/16) ==
 
'''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
 
 
 
== Archives ==
 
* [[IBCS2 - 1617 - September]]
 
* [[IBCS2 Summer Assignment]]
 
* [[IBCS2 - 1516]]
 

Latest revision as of 08:28, 13 September 2023