<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=IBCS2_-_1112_-_September</id>
	<title>IBCS2 - 1112 - September - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=IBCS2_-_1112_-_September"/>
	<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=IBCS2_-_1112_-_September&amp;action=history"/>
	<updated>2026-10-21T21:27:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=IBCS2_-_1112_-_September&amp;diff=8294&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;== Friday (9/30/11) == &#039;&#039;&#039;Agenda:&#039;&#039;&#039; * Sorting Quiz * Introduction to Abstract Data Type (ADT) * Introduction to Data Structures * Stacks ** Media:Stacks.ppt ** [[Media:Stack...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=IBCS2_-_1112_-_September&amp;diff=8294&amp;oldid=prev"/>
		<updated>2011-11-17T01:40:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Friday (9/30/11) == &amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039; * Sorting Quiz * Introduction to Abstract Data Type (ADT) * Introduction to Data Structures * Stacks ** &lt;a href=&quot;/wiki/images/5/51/Stacks.ppt&quot; class=&quot;internal&quot; title=&quot;Stacks.ppt&quot;&gt;Media:Stacks.ppt&lt;/a&gt; ** [[Media:Stack...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Friday (9/30/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Sorting Quiz&lt;br /&gt;
* Introduction to Abstract Data Type (ADT)&lt;br /&gt;
* Introduction to Data Structures&lt;br /&gt;
* Stacks&lt;br /&gt;
** [[Media:Stacks.ppt]]&lt;br /&gt;
** [[Media:Stack.java]]&lt;br /&gt;
** [[Media:StackMain.java]]&lt;br /&gt;
** [http://www.csanimated.com/animation.php?t=Stack Stack Animation]&lt;br /&gt;
* Stack Practice&lt;br /&gt;
*# After studying the stack code, you will attempt to re-create the Stack.java code&lt;br /&gt;
*# Create a new Java project called StackPractice&lt;br /&gt;
*# Download [[Media:EmptyStack.java]]&lt;br /&gt;
*# Rename EmptyStack.java to Stack.java AND add it to your StackPractice project&lt;br /&gt;
*# Download [[Media:StackMain.java]] and add it to your StackPractice project&lt;br /&gt;
*# Fill in the code for all the empty stack methods&lt;br /&gt;
*# Test your own stack code with StackMain.java&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Homework:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Analyzing the Problem due Tuesday (10/4/11)&lt;br /&gt;
* Quick Stack Quiz on Tuesday (10/4/11)&lt;br /&gt;
&lt;br /&gt;
== Wednesday (9/28/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Repeatedly comparing adjacent elements and swapping them so that they are in the correct order.  Which sort am I?&lt;br /&gt;
# Repeatedly look for the smallest thing currently in the collection and putting it aside.  Which sort am I?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* If you have no missing assignments, complete the optional survey.&lt;br /&gt;
* Insertion Sort&lt;br /&gt;
** From the very beginning...insert the value into the correct spot (there may need to be some shifting around)&lt;br /&gt;
* Quick Sort&lt;br /&gt;
*# Start with a partition (will be the entire list in the beginning)&lt;br /&gt;
*# Pick an element at random.   It will be the pivot value.&lt;br /&gt;
*# Go through the list and values less than the pivot are put before it and values greater than the pivot will come after.&lt;br /&gt;
*# The pivot also partitions the list into two sublists.  Repeat steps 1-4 for each of the sub-lists.&lt;br /&gt;
* [http://www.sorting-algorithms.com/ Sorting Animations]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Quicksort Quicksort]&lt;br /&gt;
* Sorting Quiz this Friday (9/30/11)&lt;br /&gt;
** Be able to explain each of the sorts&lt;br /&gt;
* Work on your Analysis of the Problem&lt;br /&gt;
* Demo missing assignments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Homework:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Sorting Quiz this Friday (9/30/11)&lt;br /&gt;
* Analyzing the Problem due Tuesday (10/4/11)&lt;br /&gt;
&lt;br /&gt;
== Back to School Night (9/26/11) ==&lt;br /&gt;
* [[Media:B2snIBCS2.ppt]]&lt;br /&gt;
&lt;br /&gt;
== Monday (9/26/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* SelectionSort Review&lt;br /&gt;
* Demo SelectionSort.java&lt;br /&gt;
* Demo the sort option added to your AddressBook&lt;br /&gt;
* Introduction to Bubble Sort&lt;br /&gt;
# Initialize the front to be the top or beginning of the array&lt;br /&gt;
# Now go to the bottom/end of the array&lt;br /&gt;
# Compare the two adjacent elements to see if they are in proper sequential order&lt;br /&gt;
## Swap the elements if they are out of order (bigger number to the left of smaller number)&lt;br /&gt;
# Move to the next pair of adjacent elements/numbers&lt;br /&gt;
# Repeat steps 3 and 4 until the smallest number has &amp;quot;floated&amp;quot; to the top/front&lt;br /&gt;
# After you traverse the entire array&lt;br /&gt;
## Move the front so that the sorted numbers are ignored&lt;br /&gt;
## Go back to the end of the array&lt;br /&gt;
## Repeat steps 2 through 6 for the unsorted part of the array&lt;br /&gt;
&amp;lt;!--* [http://web.engr.oregonstate.edu/~minoura/cs162/javaProgs/sort/BubbleSort.html Bubble Sort Animation]--&amp;gt;&lt;br /&gt;
* [http://math.hws.edu/TMCM/java/xSortLab/ Sorting Animations]&lt;br /&gt;
* [http://www.cs.pitt.edu/~kirk/cs1501/animations/Sort2.html More Sorting Animations]&lt;br /&gt;
* Download [[Media:BubbleSort.java]]&lt;br /&gt;
** Fill in the commented parts of the BubbleSort.java file. Where there is a comment, you need to write code.&lt;br /&gt;
** Demo to Mr. Bui at the end of class&lt;br /&gt;
* Introduction to the Program Dossier&lt;br /&gt;
** [[Media:CriterionA1_problemAnalysis.doc]]&lt;br /&gt;
** Analyzing the Problem due Tuesday (10/4/11)&lt;br /&gt;
** Work on your Analyzing the Problem section&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Homework:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Any leftover AddressBook demonstrations (including a sort option)&lt;br /&gt;
* SelectionSort and BubbleSort&lt;br /&gt;
* Analyzing the Problem due Tuesday (10/4/11)&lt;br /&gt;
&lt;br /&gt;
== Thursday (9/22/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Form a group of 3 people&lt;br /&gt;
# Receive several playing cards from Mr. Bui&lt;br /&gt;
# Shuffle the cards&lt;br /&gt;
# Sort them in numerical order by repeatedly finding the smallest card and separating it&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Introduction to Selection Sort&lt;br /&gt;
# Find the smallest element&lt;br /&gt;
# Move to the front of the array (swap with front)&lt;br /&gt;
# Repeat Steps 1&amp;amp;2, but ignoring the sorted front&lt;br /&gt;
* [http://www.cs.oswego.edu/~mohammad/classes/csc241/samples/sort/Sort2-E.html Selection Sort Animation]&lt;br /&gt;
* [http://www.cs.ust.hk/faculty/tcpong/cs102/summer96/aids/select.html Another Selection Sort Animation]&lt;br /&gt;
* [http://math.hws.edu/TMCM/java/xSortLab/ Sorting Animations]&lt;br /&gt;
* Download [[Media:SelectionSort.java]]&lt;br /&gt;
** Fill in the commented parts of the SelectionSort.java file. Where there is a comment, you need to write code.&lt;br /&gt;
* Demo SelectionSort&lt;br /&gt;
* Add a (s)ort option to your AddressBook&lt;br /&gt;
** In order to compare Strings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Java&amp;quot;&amp;gt;&lt;br /&gt;
if (str1.compareTo(str2) &amp;lt; 0)&lt;br /&gt;
{&lt;br /&gt;
  System.out.println(str1 + &amp;quot; goes before &amp;quot; + str2);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* So inside your AddressBook, you&amp;#039;d have something like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Java&amp;quot;&amp;gt;&lt;br /&gt;
if (myContacts[i].getLastName().compareTo(myContacts[j].getLastName()) &amp;lt; 0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Friday - Tuesday (9/16/11 - 9/20/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Download [[Media:ConsoleInput.java]]&lt;br /&gt;
* Download [[Media:ConsoleInputExample.java]]&lt;br /&gt;
* Create a new Java project to test out ConsoleInput&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Return Software Development Quizzes&lt;br /&gt;
** Corrections for 1/2 partial credit (Turn in corrections by the end of the week)&lt;br /&gt;
* Complete [[AddressBook class lab assignment]] by the end of class&lt;br /&gt;
&lt;br /&gt;
== Wednesday (9/14/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [https://docs.google.com/spreadsheet/viewform?formkey=dGtvblF4ZDBvTWpTY2hyWFpYeVZGWFE6MQ Java Home Survey]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Java Review?&lt;br /&gt;
** How does it all work?&lt;br /&gt;
*# Create Java Classes (object blueprints)&lt;br /&gt;
*# Create a separate main class with a main method.  The main method can use other objects defined in classes.&lt;br /&gt;
** [[Person class lab assignment]] - Complete in 5-10 minutes&lt;br /&gt;
** [[Car class lab assignment]] - Complete in 5-10 minutes&lt;br /&gt;
** [http://codingbat.com/java CodingBat - Java] - Practice!&lt;br /&gt;
* Review Arrays&lt;br /&gt;
** [[Media:IntroArrays.ppt]]&lt;br /&gt;
* Array practice activities&lt;br /&gt;
*# Create a new Java class named ArrayPractice1.  Create an array of 10 Strings (Use names of students in the room).  Using a for loop, print out all the Strings in the array.&lt;br /&gt;
*# Create a new Java class named ArrayPractice2.  Create an array of 10 integers (make a bunch of numbers up).  Using a for loop and an if statement, print print out only numbers greater than 10.&lt;br /&gt;
*# Create a new Java class named ArrayPractice3.  Create an array of 10 integers.  Using a for loop, calculate the sum and average.&lt;br /&gt;
* AddressBook beginning walk-through&lt;br /&gt;
* [[AddressBook class lab assignment]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Homework:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Install the [http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html Java JDK] on your computer (be sure to choose your corresponding operator system)&lt;br /&gt;
* Install [http://www.eclipse.org/downloads/packages/eclipse-classic-37/indigor Eclipse Classic] on your computer (be sure to choose your corresponding operator system on the right)&lt;br /&gt;
* Test it out, and let Mr. Bui know if you run into problems&lt;br /&gt;
&lt;br /&gt;
== Monday - Wednesday (9/12/11 - 9/14/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Redo the [https://docs.google.com/spreadsheet/viewform?formkey=dGg5OERiaDRZYmtBLUNaQ1pDTjVMR3c6MQ Comfort Zone Survey]&lt;br /&gt;
* Be prepared to demo Contact&lt;br /&gt;
* Cram for quiz (Hint: There is a question on almost every slide...lol!)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Software Development Quiz&lt;br /&gt;
* Demo [[Contact class lab assignment]].  It must be completed in order to do the [[AddressBook class lab assignment]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Homework:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Install the [http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html Java JDK] on your computer (be sure to choose your corresponding operator system)&lt;br /&gt;
* Install [http://www.eclipse.org/downloads/packages/eclipse-classic-37/indigor Eclipse Classic] on your computer (be sure to choose your corresponding operator system on the right)&lt;br /&gt;
* Test it out, and let Mr. Bui know if you run into problems&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tuesday - Thursday (9/6/11 - 9/8/11) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Complete the [https://docs.google.com/spreadsheet/viewform?formkey=dGg5OERiaDRZYmtBLUNaQ1pDTjVMR3c6MQ Comfort Zone Survey]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Introductions&lt;br /&gt;
* Name cards&lt;br /&gt;
* Lab setup/config&lt;br /&gt;
** Login username is your first initial and lastname (e.g. pbui)&lt;br /&gt;
** Your password is your student ID number&lt;br /&gt;
** Go to Apple (upper left) -&amp;gt; System Preferences -&amp;gt; Accounts -&amp;gt; Change Password&lt;br /&gt;
* [http://spreadsheets.google.com/viewform?key=p6_k1SMbS2zvMHJNJBBkFPA Student Surveys]&lt;br /&gt;
* Turn in [[IBCS2 Summer Assignment]]&lt;br /&gt;
* [[IB Computer Science II Syllabus]]&lt;br /&gt;
* Introduction to Software Development&lt;br /&gt;
** [[Media:SoftwareDevelopment.ppt]]&lt;br /&gt;
* Software Development Quiz on Monday (9/12/11)&lt;br /&gt;
* [[Contact class lab assignment]]&lt;br /&gt;
** Demo at the beginning of next class.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Homework:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Software Development Quiz on Monday (9/12/11)&lt;br /&gt;
* [[Contact class lab assignment]]&lt;br /&gt;
&lt;br /&gt;
== Summer ==&lt;br /&gt;
* [[IBCS2 Summer Assignment]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>