Programming II
CSC153 – Fall 2009

Course Information

Instructor:
Office:
Class Meetings:
Office Hours:
Textbook:

Prerequisites:

Imad Antonios (email: antoniosi1 at southernct.edu)
MO117A, phone: 203.392.5814
TR 1:50-3:05, T in MO10, R in JE139A
T 3:05-5:05, R 12:50-1:50, F 12-2, or by appointment
Introduction to Java Programming, Brief Version, Seventh Edition, by Daniel Liang, Prentice Hall.
A grade of C or better in CSC152

Tutoring hours

Tuesdays 2-4pm and Wednesdays 7-9pm in JE139A on a drop-in basis.
Student tutor: Jonathan Drosdeck.

Syllabus (pdf)

Submit your assignment (no longer available)

Course Schedule

Week of

Course Topic

12.08

Swing timers.
Solution to review problems: Calculator.java, ShuffleWords.java

12.01

Java graphics. Code examples: inclass1201.java, inclass1201_2.java
In-class exercises (txt): due on 12.03
Project 5 (pdf)
Final exam on 12.15 from 12:45-2:45 in JE139A

11.24

Introduction to Java graphics
Thanksgiving recess

11.17

Layout management. Download code from Chapter 13 (zip)
In-class assignment (txt)

11.10

User interface elements: JFrame, JPanel, JButton, and JLabel. (Ch. 13)
Basic event-driven programming concepts: event sources and event handlers (Ch.15).
Java code examples from 11.10: UI1.java and UI2.java
.
Code example illustrating event sources and ImageIcons: UI3.java, happy.gif, sad.gif, unsure.gif (download all into the same directory).
In-class exercise on 11.12 (txt)

Quiz on 11.17: Abstract classes, interfaces, toString, examples of using interfaces (e.g. Comparable, Edible, Cloneable), user interface concepts (event generation and handling).

11.03

Abstract classes and interfaces (Read Ch. 11)
Misc. topics: toString method, protected modifier, and class Object as a superclass
Code examples from 11.03 (ch11_1.zip).
In-class exercise on 11.05 (txt)

10.27

Exception handling: Runtime exceptions, IO exceptions, and input format errors. Code examples: FileEcho.java, DelegateException.java
Try/catch blocks
Project 4: (pdf) due on 11.12.09 at 11:59pm
In-class exercise (10.29): work on menu options 1 and 2 from project 4. Create an input file and read contents into an array, then print its contents. Use exception handling when opening the file. Submit your program by the end of class.

10.20

Downcasting and the instanceof operator (PersonMain.java)
Quiz
on inheritance and polymorphism on 10.20
Midterm
exam on 10.22: includes a multiple-choice component and programming. You may bring a note sheet with you. Exam covers Chapters 7 through 10.

10.13

Inheritance and polymorphism (Read Ch. 10)
Super classes and subclasses
Inheritance example with JFrame
The super keyword

10.06

Object-oriented thinking (Read Ch. 9)
Examples to practice object-oriented design ideas
Solution to project 1 (Proj1Main.java) and sample test run (.txt)
In-class assignment (10.08): Implement the replace and remove methods in the Course class. Download CourseMain.java. Work in teams of two. Submit your modified file by the end of class. Make sure both team members names appear in the java file.

Project 3: Programming exercise 9.3 on page 323. Turn in your java files as well as a UML diagram as a single zip file. Due at 11:59pm on 10.15.09.

09.29

File input using Scanner
Review of two-dimensional arrays
Project 2 discussion

09.22

String conversion to int and double and vice versa
The Character class – checking character properties (digit, letter, upper case, etc)
Mutable strings: the StringBuilder class
File I/O: The File class, PrintWriter
Project 2 (pdf), also need to download BaseBoard.java: due on 10.08.09
Quiz on Chapter 8 on 10.01.09 (revised date)

09.15

Java Strings (Read Ch. 8)
String example program (.java)
In-class lab (pdf)

09.08

Class design: constructors, accessors, mutators
UML class diagrams
javadoc comment block
Project 1 (pdf): due on 09.22.09
Quiz on Chapter 7 on 09.15.09
Ch. 7 lecture notes (txt)

09.01

Course Introduction
Class and object definitions