Difference between revisions of "IB Computer Science 2"

From WLCS
Line 4: Line 4:
 
** [[Media: AddressBookLLTest.java]]
 
** [[Media: AddressBookLLTest.java]]
 
* Sorting with LinkedLists walk-through
 
* Sorting with LinkedLists walk-through
* ...
+
* Introduction to Binary Trees
* ...
+
** [[Media:BinaryTrees.ppt]]
 +
** [[Media:BinaryTreeNode.java]]
 +
** [[Media:BinaryTree.java]]
 +
** [[Media:BinaryTreeTestMain.java]]
 +
* Binary Tree Assignment - Convert BinaryTree so that it contains Strings instead of int. Be sure to test it to make sure it works
 +
** Binary Tree Assignment due Tuesday (11/20/11)
 +
** [[Media:StringBinaryTreeTestMain.java]]
 +
 
 
== Wednesday (11/14/12) ==
 
== Wednesday (11/14/12) ==
 
* Reminder: A3: Prototype Solution is due Friday (11/16/12)
 
* Reminder: A3: Prototype Solution is due Friday (11/16/12)

Revision as of 11:50, 16 November 2012

Friday (11/16/12)

Wednesday (11/14/12)

  • Reminder: A3: Prototype Solution is due Friday (11/16/12)
  • Mr. Bui's AddressBookLLTest
  • Sorting with LinkedLists walk-through

Friday (11/9/12)

Agenda:

  • Turn in A2: Criteria for Success
  • A3: Prototype Solution - Media:CriterionA3_prototypeSolution.doc
    • Due Friday (11/16/12)
  • Flowcharts - Media:Flowcharts.ppt
    • Microsoft Word (recommended)
    • Google Draw
    • Diagramly
  • Java GUI development
    • NetBeans GUI Builder
    1. Don't create a main() file
    2. Create a new JFrame
    3. Drag-n-drop like crazy
    4. Run the specific frame file and take a screenshot for A3: Prototype Solution
  • Mr. Bui's AddressBookLLTest
  • Implementing sorting with LinkedLists

Friday - Wednesday (11/2/12 - 11/7/12)

Agenda:

  • AddressBookLL Assignment
    1. Create a new Java Project and name it AddressBookLLProject
    2. Copy over your Contact, AddressBook, and AddressBookMain classes to this new project
    3. Create a new class named ContactNode
      • ContactNode should be just like Node, but instead of having an int num, you should have a Contact contact as the internal attribute
      • Also be sure to have the next reference, which should be of type: ContactNode
      • Your ContactNode class should have two constructors: ContactNode() and ContactNode(Contact newContact)
    4. Create a new class named ContactLinkedList
      • Copy over your LinkedList code
      • Convert the code so that it uses ContactNode and Contact instead of int
      • Wherever you need to return an error Contact, return null or -1
    5. Change AddressBook so that it uses the ContactLinkedList instead of the Contact[]
      • Be sure to create a new instance of ContactLinkedList in the AddressBook() constructor
      • Most of AddressBook will look MUCH simpler b/c all you need to do is use the ContactLinkedList
      • Comment out your sort() method
    6. Test out everything using AddressBookMain, which should not require any changes except for commenting out the sort option
  • When you are done with AddressBookLL, edit the sort option so that it works with a LinkedList of Contacts

Archives