COMP 14 Introduction to Programming

Fall 2004

Announcements:
Program 4  is due Tuesday noon Dec 2.
A study section for program 4 will be held in SN 042 from 3:30-4:30pm Dec 1.
Due day of the homework 5 has been postponed to Dec 6.
Program 5 is due midnight Thursday Dec 16.
Instructor:
Jun(Luke) Huan
322 Sitterson Hall
Department of Computer Science
phone: 919-962-1843
email: huan@cs.unc.edu

Class Meeting: T/R: 3:30-4:45 at Davie Hall 122
Recitation:  F: 12:00-12:50 Sitterson Hall 014
Text Book:
Java Programming: From Problem Analysis to Program Design (companion website) D. Malik, P. Nair ISBN: 0-619-06497-8 Available online and at UNC Student Stores.
Office Hours:  one hour after each class or by appointment
Syllabus of the Class

Schedules:
Date
Activity
Assigned
Due
Note
Aug 24
Introduction to the class
Reading Chapter 1

Late registration
Aug 26
Introduction to computer
homework1   helloworld.java
Thursday Sept 2

Aug 31
Variable and operations



Sept 2
String and Java I/O

homework1
ch.2 pp:40-58
Sept 3
recitation: jGRASP: edit/compile/run
java file; arithmetic operations
MathExpressions
recitation 1
by the end of the class

Sept 7
java output, programming style


ch.2 pp58-88, MakeChange.java
Sept 9
review, java application example


midterm in earlier Oct.
Sept 10
recitation: recitation about variables, declared constants, and assignment
recitation 2

Sept 14
objects, methods, and strings
Project 1
Tuesday Sept 21
ch.3 pp 97-112
Sept 16
reference variables, string, and Java GUI


ch. 3 pp 113-120
Sept 17
recitation: create jar file
stringExpression
escapeSequences
homework 2
Tuesday Oct 5

Sept 21
string tokenize, output formatting, file I/O, and Boolean variables

Project 1
ch. 3 and ch.4 pp 120-158
DialogBox.java
MakeChangeGUI.java
StudentGrade.java
test.txt
Sept 23
branching structures


ch. 4 pp158-189 Tokenize.java
Sept 24
recitation: Java GUI and selection


hand-out
Sept 28
branching structures



Sept 30
while loop
project 2 assigned
Tuesday Oct 19
ch. 5 pp 199-229
Oct 1
recitation: selection


hand_out
Oct 5
while loop examples

Homework 2 due
TelephoneDigitProgram.java
PrimeNumber.java
Oct 7 review chapter 1 - 5, answering questions


Homework 2 answer key
Oct 8
recitation: continue while loop



Oct 12
Midterm



Oct  19
for loop
Project 2 due
ch. 5 pp 230-249
Oct 21
Object-oriented design


ch. 6 pp 298-311
ch. 7 pp 313-332
Oct 22
Recitation: GUI design


ch. 6 pp263-297
rectangle: p1, p2, p3, final
midterm answer key
calculator
Oct 26
Java Method
Homework 3 assigned ch. 7 pp 333- 385
Oct 28 Java Method (2)


ch. 7 pp 333- 385
Oct 29
Recitation: Java method



Nov 2
User defined classes
GUI_demo1; GUI_demo2;
GUI_demo3;
GUI_demo4;
GUI_demo5;
img
reverse.java
myString.java
Program 3 assigned, due Nov 9 Project 3 assigned
ch. 8 pp 393-464
card.java
BlackjackGame.java
Blackjack.java
Nov 4
Method

Homework 3 due

Nov 5
Recitation: Java method


Nov 9
Array
Homework 4 assigned
ch. 9 pp 467 -517
Homework 3 answer key
Nov 11
Algorithm: Search


ch. 10 pp 523-542
Nov 12
Recitation:myString: reprise I


myString1.java
reverse.java
Nov 16
Vector and sorting
Program 4

Homework 4 due
Program 3 due
ch. 10 pp 542-579
ch. 6 pp 263-298
for program 4:
hand.java, deck.java
BlackJackGUI.java
BlackJack.java
for program 5:
BlackJackGUI.java
Applet.java
Nov 18
Data structures and recursion


ch. 14 813-844 (last reading assignment)
Nov 19
Recitation: myString: reprise II


Homework 4 answer key
Nov 23
Program 5

Homework 5 assigned

Nov 25
Thanksgiving holiday



Nov 26
Thanksgiving holiday



Nov 30
Life beyond comp14

Program 4 due

Dec 2
Class overview

Early Turn in Bonus deadline Noon

Dec 3
Recitation: programming contest


answer1, answer2, answer3
Dec 6


Homework 5 due Homework 5 answer key
Dec 16
Final exam 2pm, same classroom

Program 5 due