Chandler-Gilbert Community College Spring 2005
Schedule

Home
Schedule
Instructor
Links
Syllabus


This page contains a list of lecture topics, handouts, assignments and exam dates.   The schedule may be adjusted throughout the semester to meet class needs.    Assignments and handouts may be invisible.  That means I haven't yet reviewed the assignments and handouts and determined they are appropriate for this semester.  Once I've reviewed them, I make them visible.

The first line of all your programs should contain your name, the exercise and the day/time your class meets.  Example:

// Greg Swan, ex 3.5, MW 9:50

Don't forget exercise number.  I'll charge a 20% "fee" for researching it for you.


Topic Assignments and Handouts
Jan 17 MLK Holiday no class
1
Jan 19
Introductions
Review syllabus
In-class group assignment: Using the Class Web Site
Hand out java install disk
Please set up your blackboard account and enter your email address on blackboard
Handouts: 
Using the Class Web Site
Set up your blackboard account and enter your email address 
Homework (due next class meeting):
Complete your Homework Plan
Reading:
Chs 1 & 2
2
Jan 24
Textpad and a first java program
Tour lab
In-Class Activities Handouts: 
Using Textpad to edit, compile and run Java applets
Homework (due next class meeting)
Ex 2.3, 2.4
Reading:
Ch 3
3
Jan 26
programming
object-oriented programming
intro to AWT graphics
Sequence structure
Style manual
Comments
In-Class Activities Handouts: 
snowman example (will be posted on blackboard)
Sun Java style manual
style

Homework (due next class meeting)
Ex 3.5, plus enclose the entire target in a rectangle or do something similarly creative involving the draw methods, drawstring and color fills.  
Take 3.5 and revise it so that it follows the style manual rules
Reading: 
Ch 4

4 Jan 31 
Literals
Primitive data types
Assignment
Arithmetic operators and expressions
Operator precedence
Variables
Identifiers
Introductory type conversion
New style issues
In-Class Activities Handouts: 
Java primitive data type reference
Java operator precedence reference
Homework (due next class meeting)
Programs must meet standards in style manual week 3
 
Ex 4.2 (CSC) or 4.5 (CIS)
Ex 4.7 (hint)
Reading: 
Ch 5
5
Feb 2
Showing line numbers with textpad
Developing methods and generalizing code
Passing parameters
Local variables
Reusing methods
In-Class Activities Handouts: 
Corrections to errors in text (note: minus sign in some line numbers means count up from bottom of page)
Homework (due next class meeting)
Programs must meet standards in style manual week 3
I strongly suggest you enter the examples in the chapter and get them to work.  As you enter them, think about what each line does.
Ex 5.4 (For purposes of this assignment, you "person" can be a circle on top of a line: .  Or, impress me by doing a more sophisticated person.  This method will not have a return.  BRING THIS PROGRAM TO CLASS.
Reading: 
Ch 6
6
Feb 7
Methods that return a value
Understanding scope
The event concept
The AWT revealed
Adding scrollbar and label objects to the screen
Listening for events
In-Class Activities Handouts: 
Create a program and put an awt object in the paint area
Homework (due next class meeting)
Programs must meet standards in style manual week 3
Do 5.6  Metric conversion (Don't forget. This method will have a "return")
Ex 6.4 Event-driven Oval
Reading: 
Ch 7, pgs 80-92
7
Feb 9
intro to selection structure
if..else
comparison operators
 
In-Class Activities Handouts: 
Sun Java style manual 4
Java operator precedence reference
flowcharting tutorial
Homework (due next class meeting)
Programs must meet standards in this style manual 4
Please do all the self-tests
Ex 7.4 Tickets (use scrollbar)
Reading: 
Ch 7, pgs 93-110
8
Feb 14
boolean operators
nesting
boolean variables
textfields
buttons
In-Class Activities Handouts: 
 
Homework (due next class meeting)
Programs must meet standards in style manual 4
please do all the self-tests
ex 7.9 Elevator (Do this one first)
ex 7.8 Calculator (Please note: calculator doesn't work the way a normal calculator works.  Read the description of its function carefully.) Completed calculator program.  
Reading: 
Ch 8, pgs 116-121
9
Feb 16
random numbers
switch
intro to loops
while loops
In-Class Activities Handouts: 
Event-handling skeleton
Homework (due next class meeting)
Programs must meet standards in style manual 4
7.2 (Use switch to convert the numbers).
finish calculator program
8.2 (Use while)
Reading: 
ch8 p 122-132
Feb 21 Presidents Day No class
10
Feb 23
for loops
do while loop
nested loops
brief description of exam
 
In-Class Activities Handouts: 
Self-test 8.1
Self-test 8.6
Sun Java style manual 5
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
none.  study for exam.
Reading: 
none.  study for exam.
11
Feb 28
Exam 1 over all text material covered to date except loops.  There will be some concept questions, however most questions will be primarily one of two types:
ask you to review code and correct it
ask you to write code
In-Class Activities Handouts: 
exam
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
8.3 (Use for) 
8.8 (Use nested loops.)
Reading: 
Ch 8, pgs 127-135
12
Mar 2
review exam 1
Grade sheets
Intro to object-oriented design
In-Class Activities Handouts: 
Review exam
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
Do all self-test questions
Reading: 
Ch 9
13
Mar 7
Creating and controlling an object
Default Constructors
Displaying an object
Methods

 

In-Class Activities Handouts: 
Monster cookbook #1: Building a Class
Monster. display
Monster compile fix
Homework
Programs must meet standards in Sun Java style manual 5
Due next class period: Build a base monster class and a monster controller class as explained and demonstrated in class.  The monster and the monster controller should be placed in separate files.
Due Monday after Spring Break: If you have time, begin training your monster to do at least 5 things and enhance your controller to direct the monster to do those things. 
Reading: 
Ch 9 (again), Ch 10 (optional)

 

14 Mar 9
Overloading
Accessor methods
Mutator methods
 
In-Class Activities Handouts: 
Most of the class will be a monster training session
Homework (due first meeting after spring break)
Programs must meet standards in Sun Java style manual 5
Train your monster, continued.   Train your monster to do at least 5 things and enhance your controller to direct the monster to do those things.  
Reading: 
Ch 11
  Spring Break March 14-18
15
Mar 21
Byval vs Byref.  Why it doesn't matter as much in OOP.
Static methods, attributes
garbage collection

 

In-Class Activities Handouts: 
Monster demos
Base monster
Homework 
Programs must meet standards in Sun Java style manual 5
Anyone who hasn't finished monster, shoudl finish it
Reading: 
none
16
Mar 23
Inheritance
super
Overriding
final 
final static
In-Class Activities Handouts: 
Monster demos
Homework (due in one week)
Programs must meet standards in Sun Java style manual 5
Monster inheritance assignment.  Anyone who missed class and therefore did not receive a disk, please download the Base monster file and double-click on the file.  That will create a folder with a Monster in it that you can use to complete the assignment.  
Reading: 
Ch 13, pgs 223-239
17
Mar 28
Introduction to arrays
In-Class Activities Handouts: 
help with monster inheritance
Homework (due in one week):
Programs must meet standards in Sun Java style manual 5
statistics array class assignment
Reading: 
Ch 13, pgs 240-242
18
Mar 30
Applications of arrays
Sort algorithm
In-Class Activities Handouts: 
Demos of monster inheritance
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
 
Reading: 
Ch 14
Ch 12
19
Apr 4
Multi-dimensional arrays

 

In-Class Activities Handouts: 
sort demo
Homework (due in one week) Programs must meet standards in Sun Java style manual 5
Add the sort method to the StatsArray.
Using a copy of the StatsArray class, create MultiArray.  MultiArray is the same as StatsArray, except that the array it houses is two dimensional. Revise all methods to work with the two dimensional array, except the sort method.  You need not include the sort method in MultiArray.  Instead, create a method that adds up the 2nd column of numbers in the multidimensional array.
Reading: 
Ch 23, Ch 24
20
Apr 6
Exam review
Calculations
Testing - black box 
Testing - white box
Debugging

 

In-Class Activities Handouts: 
Partial answer key: MultiArray, MultiArrayController
Black box/white box testing problem 
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
23.2 - white box test plan 
23.2 - black box test plan
Reading: 
Ch 15
21
Apr 11
Strings
In-Class Activities Handouts: 
 

Homework due in one week)
Programs must meet standards in Sun Java style manual 5
15.3.  Also, convert the number to an Int or float as applicable.  Do NOT display the converted number to the Applet window.  Instead, display it to System.out.println, as described in Ch 24 on debugging.
Cool challenge: 15.6

Reading: 
 

22
Apr 13
Exam #2 (chs 8, 9, 11, 13, 14)
In-Class Activities Handouts: 
 
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
 
Reading: 
Ch 16
23
Apr 18
Review exam #2
Exceptions
In-Class Activities Handouts: 
Exercise 16.2.  Throw an ArithmeticException if the denominator is zero.
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
16.3 or 16.4
Reading: 
Ch 18, Ch 23 243-249 (ArrayLists)
24
Apr 20
Java applications
ArrayLists
Stacks/queues
In-Class Activities Handouts: 

Homework due next class meeting)
Programs must meet standards in Sun Java style manual 5
ArrayList exercise 13.18 or 13.17, whichever you prefer.  I recommend using artist objects from the HitList program as the objects to be queued/stacked.  I also recommend modifying the HitList user interface code to create your stack or queue controller. 
Convert any prior assignment to an application
Reading: 
Ch 19 344-53, 360-66 (files)

25
Apr 25
File streams

 

In-Class Activities Handouts: 
Using the FileReader.txt file, write a java program called FileR that reads in the data and displays it using System.out.println
Modify FileRW to create a new program that reads in FileReader.txt and writes the data to FileWriter.txt.
Modify FileRW to use the StringTokenizer to break the input line into fields.
Homework (due next class meeting)
Programs must meet standards in Sun Java style manual 5
Please write a class called NameSwitch which reads in a text file containing first name and last name separated by commas.  Then, use System.out.println() to display each name in lastname, then firstname format.  Example input "George,Bush"  Example output: "Bush,George"  I've created a file called names.txt which contains 10 names.  You can download this file and use it with your program.
Modify NameSwitch so that the reversed names are sent to an output file instead of to System.out.println()
Reading: 
Ch 21
26
Apr 27
OO Design
Discuss final
In-Class Activities Handouts: 
Basket design  
Where to go from here:
Integrated Development Environment(IDE) automatically generated code jdeveloper.java
Creating UI with IDE  jdeveloper2.java 
java in context
Homework (due next class meeting)
Programs must meet standards Sun Java style manual 5
none.  study for exam.
Reading: 
none.  study for exam.
27
May 2
Exam #3

In-Class Activities Handouts: 
 

Homework (due in one week unless otherwise noted)
Programs must meet standards Sun Java style manual 5
none.  
Reading: 
none.  

28
May 4
Exam #3 results
Gradesheets
Ethics
In-Class Activities Handouts: 
Codes of Ethics

Homework (due next class meeting)

Ethics assignment.   Read Case #1 and answer the questions.  Pick a code of ethics from the handouts above.  Select one you believe will apply to you and read it.  What guidance does the code of ethics provide that might help you resolve case #1?  Your work must be typed and free of spelling and grammatical errors.  Approximately 500 words in length.
 
Final exam
Monday May 9, 9:00-10:50am C104
 

Home ] [ Schedule ] Instructor ] Links ] Syllabus ]

date last modified: 04/25/05
copyright 2005 Greg Swan