Difference between revisions of "IBCS2 - 0910 - September"
From WLCS
(Created page with "== Wednesday (9/30/09) == * AddressBook class lab assignment is due at the halfway point today. * Introduction to Selection Sort # Find the smallest element # Move to the fro...") |
|||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://asuxoqonyb.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]= | ||
+ | ---- | ||
+ | =[http://asuxoqonyb.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
== Wednesday (9/30/09) == | == Wednesday (9/30/09) == | ||
* [[AddressBook class lab assignment]] is due at the halfway point today. | * [[AddressBook class lab assignment]] is due at the halfway point today. | ||
Line 4: | Line 12: | ||
# Find the smallest element | # Find the smallest element | ||
# Move to the front of the array (swap with front) | # Move to the front of the array (swap with front) | ||
− | # Repeat Steps 1&2, but ignoring the sorted front | + | # Repeat Steps 1&2, but ignoring the sorted front |
* [http://web.engr.oregonstate.edu/~minoura/cs162/javaProgs/sort/SelectSort.html Selection Sort Animation] | * [http://web.engr.oregonstate.edu/~minoura/cs162/javaProgs/sort/SelectSort.html Selection Sort Animation] | ||
* [http://www.cs.ust.hk/faculty/tcpong/cs102/summer96/aids/select.html Another Selection Sort Animation] | * [http://www.cs.ust.hk/faculty/tcpong/cs102/summer96/aids/select.html Another Selection Sort Animation] | ||
Line 84: | Line 92: | ||
* Print out a menu with the following options: | * Print out a menu with the following options: | ||
− | + | <pre> | |
(a)dd to address book | (a)dd to address book | ||
(p)rint address book | (p)rint address book | ||
Line 90: | Line 98: | ||
What would you like to do? | What would you like to do? | ||
− | + | </pre> | |
* You should prompt for input after the menu is printed. Review [[Media:JavaIOExample.java]] for examples of input/output | * You should prompt for input after the menu is printed. Review [[Media:JavaIOExample.java]] for examples of input/output |
Revision as of 21:49, 23 November 2010
Wednesday (9/30/09)
- AddressBook class lab assignment is due at the halfway point today.
- 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
- Selection Sort Animation
- Another Selection Sort Animation
- 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 to Mr. Bui at the end of class or at the beginning of class on Friday
Back to School Night
Monday (9/28/09)
Warmup:
- Create a Java program called ArrayWarmup
- Declare and initialize an int array of 10 numbers (I don't care what)
- Write a for loop that traverses the array and prints all the numbers out
Agenda:
Thursday (9/24/09)
- Demo your Person, Car, and Contact classes to Mr. Bui
- Array review
- Contact arrays
- AddressBook overview
- AddressBook class lab assignment
Homework:
- Complete AddressBook class lab assignment by Monday (9/28/09)
Tuesday (9/22/09)
- College Presentation with Ms. Settlemyer
Friday (9/18/09)
Warmup:
- Demo your Person and Car classes to Mr. Bui
Agenda:
- Questions about installing Java and JCreator at home
- Contact class lab assignment
Homework:
- How to install Java on Windows
- How to install JCreator
- Complete the Car class lab assignment
- Complete Contact class lab assignment
Wednesday (9/16/09)
Warmup:
- Complete the Circle class with the following methods:
- Circle()
- getRadius()
- setRadius()
- getDiameter()
- getArea()
Agenda:
- Classes and objects review
- Create a CircleMain class that tests the above methods
- Person class lab assignment
- Demo your Person and Car classes to Mr. Bui at the beginning of next class
Homework:
- How to install Java on Windows
- How to install JCreator
- Complete the Car class lab assignment
- Test your Java and JCreator installs by creating, compiling, and executing a Hello, World! program
Monday (9/14/09)
Warmup:
- Be sure that you have completed the Hello, world Java programs from last week
AddressBookMenu Warmup
- You will be creating a user interface menu for use with your AddressBook
- Open / create your AddressBook's main method
- Print out a message that explains the program (e.g. "Welcome to YOUR_NAME's address book!")
- Print out a menu with the following options:
<pre> (a)dd to address book (p)rint address book (q)uit
What would you like to do? </pre>
- You should prompt for input after the menu is printed. Review Media:JavaIOExample.java for examples of input/output
- If the user inputs 'a', then print a message that says "USER SELECTED ADD"
- If the user inputs 'p', then print a message that says "USER SELECTED PRINT"
- If the user inputs 'q', then print a message that says "USER SELECTED QUIT"
Agenda:
Homework:
- How to install Java on Windows
- How to install JCreator
- Test your Java and JCreator installs by creating, compiling, and executing a Hello, World! program
Thursday (9/10/09)
- Reminder: Summer assignment due at the beginning of class next Tuesday (9/15/09)
- Student Survey
- Fill out and submit
- Share several snippets with class
- On-line Resources
- Old IBCS2 website
- EIMACS - test your login
- Turingscraft - login coming soon!
- A gentle re-introduction to Java
- JEdit
- Java Review Programs
- Write a Hello, world! program ( Hint: Java program template )
- Create a new Java program using JEdit or whatever editor you prefer
- Use the Java program template as a guide
- Insert your code
- Compile and execute your code
- Open terminal
- Navigate to your Java file
- javac FILENAME
- Execute your code: java PROGRAM_NAME
- Write a program that prints Hello, world 20 times (You may login to eimacs to remember how)
- Write a program that prints Hello, world infinite times
- Program dossier introduction
Tuesday (9/8/09)
- Introductions
- IB Computer Science II Syllabus
- 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 System -> Preferences -> About Me -> Change Password