|
|
Line 1: |
Line 1: |
− | == Thursday (9/22/11) == | + | == [[IBCS2 - Archives]] == |
− | '''Warmup:'''
| |
− | # Pair up with a partner
| |
− | # Receive several playing cards from Mr. Bui
| |
− | # Shuffle the cards
| |
− | # Sort them in numerical order by repeatedly finding the smallest card and separating it
| |
− | | |
− | '''Agenda:'''
| |
− | * Introduction to Selection Sort
| |
− | # Find the smallest element
| |
− | # Move to the front of the array (swap with front)
| |
− | # Repeat Steps 1&2, but ignoring the sorted front
| |
− | * [http://www.cs.oswego.edu/~mohammad/classes/csc241/samples/sort/Sort2-E.html Selection Sort Animation]
| |
− | * [http://www.cs.ust.hk/faculty/tcpong/cs102/summer96/aids/select.html Another Selection Sort Animation]
| |
− | * [http://math.hws.edu/TMCM/java/xSortLab/ Sorting Animations]
| |
− | * Download [[Media:SelectionSort.java]]
| |
− | ** Fill in the commented parts of the SelectionSort.java file. Where there is a comment, you need to write code.
| |
− | * Demo SelectionSort
| |
− | * Add a (s)ort option to your AddressBook
| |
− | ** In order to compare Strings:
| |
− | <source lang="Java">
| |
− | if (str1.compareTo(str2) < 0)
| |
− | {
| |
− | System.out.println(str1 + " goes before " + str2);
| |
− | }
| |
− | </source>
| |
− | * So inside your AddressBook, you'd have something like this:
| |
− | <source lang="Java">
| |
− | if (myContacts[i].getLastName().compareTo(myContacts[j].getLastName()) < 0)
| |
− | </source>
| |
− | | |
− | == Friday - Tuesday (9/16/11 - 9/20/11) ==
| |
− | '''Warmup:'''
| |
− | * Download [[Media:ConsoleInput.java]]
| |
− | * Download [[Media:ConsoleInputExample.java]]
| |
− | * Create a new Java project to test out ConsoleInput
| |
− | | |
− | '''Agenda:'''
| |
− | * Return Software Development Quizzes
| |
− | ** Corrections for 1/2 partial credit (Turn in corrections by the end of the week)
| |
− | * Complete [[AddressBook class lab assignment]] by the end of class
| |
− | | |
− | == Wednesday (9/14/11) == | |
− | '''Warmup:'''
| |
− | * [https://docs.google.com/spreadsheet/viewform?formkey=dGtvblF4ZDBvTWpTY2hyWFpYeVZGWFE6MQ Java Home Survey]
| |
− | | |
− | '''Agenda:'''
| |
− | * Java Review?
| |
− | ** How does it all work?
| |
− | *# Create Java Classes (object blueprints)
| |
− | *# Create a separate main class with a main method. The main method can use other objects defined in classes.
| |
− | ** [[Person class lab assignment]] - Complete in 5-10 minutes
| |
− | ** [[Car class lab assignment]] - Complete in 5-10 minutes
| |
− | ** [http://codingbat.com/java CodingBat - Java] - Practice!
| |
− | * Review Arrays
| |
− | ** [[Media:IntroArrays.ppt]]
| |
− | * Array practice activities
| |
− | *# 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.
| |
− | *# 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.
| |
− | *# Create a new Java class named ArrayPractice3. Create an array of 10 integers. Using a for loop, calculate the sum and average.
| |
− | * AddressBook beginning walk-through
| |
− | * [[AddressBook class lab assignment]]
| |
− | | |
− | '''Homework:'''
| |
− | * 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)
| |
− | * 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)
| |
− | * Test it out, and let Mr. Bui know if you run into problems
| |
− | | |
− | == Monday - Wednesday (9/12/11 - 9/14/11) ==
| |
− | '''Warmup:'''
| |
− | * Redo the [https://docs.google.com/spreadsheet/viewform?formkey=dGg5OERiaDRZYmtBLUNaQ1pDTjVMR3c6MQ Comfort Zone Survey]
| |
− | * Be prepared to demo Contact
| |
− | * Cram for quiz (Hint: There is a question on almost every slide...lol!)
| |
− | | |
− | '''Agenda:'''
| |
− | * Software Development Quiz
| |
− | * Demo [[Contact class lab assignment]]. It must be completed in order to do the [[AddressBook class lab assignment]]
| |
− | | |
− | '''Homework:'''
| |
− | * 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)
| |
− | * 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)
| |
− | * Test it out, and let Mr. Bui know if you run into problems
| |
− | | |
− | | |
− | == Tuesday - Thursday (9/6/11 - 9/8/11) ==
| |
− | '''Warmup:'''
| |
− | * Complete the [https://docs.google.com/spreadsheet/viewform?formkey=dGg5OERiaDRZYmtBLUNaQ1pDTjVMR3c6MQ Comfort Zone Survey]
| |
− | | |
− | '''Agenda:'''
| |
− | * Introductions
| |
− | * Name cards
| |
− | * Lab setup/config
| |
− | ** Login username is your first initial and lastname (e.g. pbui)
| |
− | ** Your password is your student ID number
| |
− | ** Go to Apple (upper left) -> System Preferences -> Accounts -> Change Password
| |
− | * [http://spreadsheets.google.com/viewform?key=p6_k1SMbS2zvMHJNJBBkFPA Student Surveys]
| |
− | * Turn in [[IBCS2 Summer Assignment]]
| |
− | * [[IB Computer Science II Syllabus]]
| |
− | * Introduction to Software Development
| |
− | ** [[Media:SoftwareDevelopment.ppt]]
| |
− | * Software Development Quiz on Monday (9/12/11)
| |
− | * [[Contact class lab assignment]]
| |
− | ** Demo at the beginning of next class.
| |
− | | |
− | '''Homework:'''
| |
− | * Software Development Quiz on Monday (9/12/11)
| |
− | * [[Contact class lab assignment]]
| |
− | | |
− | == Summer ==
| |
− | * [[IBCS2 Summer Assignment]]
| |