Course Outline
HTML version
Course Outline
postscript version
Samples from class
- Birthday program from May 18 class.
- coffee billing program (first version)
- skeleton program.
- added input and output.
- complete program
including calculations.
- Personal Line of Credit example from May 20 class.
- coffee billing program (using an instantiable class and a main class)
- improved coffee billing program (using loops, ifs and Format class)
- The main class.
- The instantiable class
- first
modification. Only prints non-zero boxes, uses if to calculate
number of SMALL boxes and ensures input is greater than 0
- second
modification. Loops until told to stop and makes the job
of calculating and printing costs a private method.
- third
modification. Uses the Format class to print things.
- fourth
modification. Allows discounts.
- fifth
modification. Allows price of coffee to change.
- sixth
modification. Allows price of boxes to change.
- seventh
modification. Allows size of boxes to change.
- final
modification. Uses a ListBox to make changes.
- improved coffee billing program (using arrays and MultiInputBox)
- Sample file handling
- improved coffee billing program (using exception handling on user input)
- improved coffee billing program (using files and exception handling)
- Currency classes and test program
- The Library classes using inheritance
- The Library classes using abstract classes
- The LineOfCredit subclass.
- The Payroll classes as an application
- The Payroll classes as an applet
- The Menu sample GUI
- The Menu GUI class.
- The Main class for testing.
- Source code for the javabook package can be found in the directory $L/lect/javabook.