Difference between revisions of "IB Computer Science II"

From WLCS
Line 1: Line 1:
== Tuesday - Thursday (9/8/09 - 9/10/09) ==
+
== Tuesday (9/8/09) ==
 
* Introductions
 
* Introductions
 
* [[IB Computer Science II Syllabus]]
 
* [[IB Computer Science II Syllabus]]
Line 7: Line 7:
 
** Your password is your student ID number
 
** Your password is your student ID number
 
** Go to System -> Preferences -> About Me -> Change Password
 
** Go to System -> Preferences -> About Me -> Change Password
 +
 +
== Thursday (9/10/09) ==
 +
* Reminder: Summer assignment due at the beginning of class next Tuesday (9/15/09)
 
* [http://spreadsheets.google.com/viewform?key=p6_k1SMbS2zvMHJNJBBkFPA Student Survey]
 
* [http://spreadsheets.google.com/viewform?key=p6_k1SMbS2zvMHJNJBBkFPA Student Survey]
 
** Fill out and submit
 
** Fill out and submit
Line 14: Line 17:
 
** [http://www.eimacs.com EIMACS] - test your login
 
** [http://www.eimacs.com EIMACS] - test your login
 
** [http://www.turingscraft.com Turingscraft] - login coming soon!
 
** [http://www.turingscraft.com Turingscraft] - login coming soon!
* Java Review
+
* A gentle re-introduction to Java
 +
** [[Media:IntroJava.ppt]]
 +
** [[Media:IntroJava2.ppt]]
 +
* JEdit
 +
* Java Review Programs
 
# Write a Hello, world! program ( Hint: [[Java program template]] )
 
# Write a Hello, world! program ( Hint: [[Java program template]] )
 
## Create a new Java program using JEdit or whatever editor you prefer
 
## Create a new Java program using JEdit or whatever editor you prefer
Line 24: Line 31:
 
### ''javac FILENAME''
 
### ''javac FILENAME''
 
### Execute your code: ''java PROGRAM_NAME''
 
### Execute your code: ''java PROGRAM_NAME''
# Write a program that prints Hello, world 20 times
+
# 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
 
# Write a program that prints Hello, world infinite times
 
* Program dossier introduction
 
* Program dossier introduction
 
** [http://www.ib-computing.com/html/java/dossier/choices.html IB Computing Dossier suggestions]
 
** [http://www.ib-computing.com/html/java/dossier/choices.html IB Computing Dossier suggestions]
 +
 +
'''AddressBookMenu Assignment'''
 +
* 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"
 +
 +
'''Homework Assignment'''
 +
* [[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
  
 
== Summer Break ==
 
== Summer Break ==

Revision as of 06:29, 10 September 2009

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

Thursday (9/10/09)

  1. Write a Hello, world! program ( Hint: Java program template )
    1. Create a new Java program using JEdit or whatever editor you prefer
    2. Use the Java program template as a guide
    3. Insert your code
    4. Compile and execute your code
      1. Open terminal
      2. Navigate to your Java file
      3. javac FILENAME
      4. Execute your code: java PROGRAM_NAME
  2. Write a program that prints Hello, world 20 times (You may login to eimacs to remember how)
  3. Write a program that prints Hello, world infinite times

AddressBookMenu Assignment

  • 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:
(a)dd to address book
(p)rint address book
(q)uit

What would you like to do? 
  • 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"

Homework Assignment

Summer Break