Difference between revisions of "IB Computer Science 2"

From WLCS
Line 1: Line 1:
 +
== Wednesday - Friday (10/16/13) ==
 +
* Work on your Internal Assessment Project
 +
* Possible Resources
 +
** [http://www.codecademy.com/learn Codecademy]
 +
** [http://zetcode.com/ ZetCode Tutorials]
 +
 
== Friday (10/11/13) ==
 
== Friday (10/11/13) ==
 
'''Agenda:'''
 
'''Agenda:'''

Revision as of 15:55, 11 October 2013

Wednesday - Friday (10/16/13)

Friday (10/11/13)

Agenda:

  • JAMTECH
  • Turn in a printed copy of Criterion A: Planning of your Internal Assessment
  • Demo completed NumQueue
  • Circular Queue walk-through
  • Primitive types vs. Reference types
  • Nodes

Wednesday (10/9/13)

Agenda:

  • Complete NumQueue
    1. __init__(self): initializes the head and tail indices to None or -1
    2. isEmpty(self): returns True if the queue is empty
    3. isFull(self): returns True if the queue is full
    4. print(self): prints the entire queue from head to tail
    5. getHead(self): returns the value at the head or None if there is no head
    6. getTail(self): returns the value at the tail or None if there is no tail
    7. enqueue(self, num): adds num to the tail of the queue (don't forget to check if the queue is full beforehand)
    8. dequeue(self): returns and removes the head of the queue (don't forget to check if the queue is empty)
  • Test and demonstrate all your queue methods to Mr. Bui
  • What's a circular queue?

Homework:

Monday (10/7/13)

Agenda:

  • Stacks quiz
  • Finish static stack implementation & review
  • Queues - Media:Queues.ppt
  • Create a NumQueue class (static size)
    • Due on Wednesday (10/9/13)
    • Use NumStack as a template
    • Be sure to have all the queue attributes
    • Be sure to have all the queue operations
    • Create any other queue methods that may be useful
    • Test your queue class to see if it works

Homework:

Thursday (10/3/13)

Agenda:

  • Stacks - Media:Stacks.ppt
    • Stacks quiz on Monday (10/7/13)
    • Be able to describe the characteristics of a stack
    • Be able to explain the operations of a stack
    • Be able to describe different stack applications
    • If given a list or an array, be able to explain their use as stacks
  • Python Classes Review - Media:PythonClasses.pptx
  • NumStack Class (static-size) walk-through

Tuesday (10/1/13)

Warmup:

Agenda:

  • Searching & Sorting Quiz (~20 minutes)
  • Demo missing matrixAdd() and matrixSub()
  • Demo completed fliplr(m) and flipud(m)
  • Internal Assessment Materials
  • Henceforth...all free time...will be spent working on your IA

Archives