Welcome to Professor Ziegler's CISC 3115 Sample Program Home Page




The following are links to files containing source code for the sample programs used during the in-class lectures. You may download a copy of these notes only if you are a registered student in my CISC 3115 class. To download a file, RIGHT CLICK on the link and use the "Save Link Target As" feature of your browser.

Introduction:

Introductory Program - Bank Accounts

Sample input data file for the Bank Accounts program

Sample test cases data file for the Bank Accounts program


Chapter 6: A First Look at Classes and Objects

prj06_01AllClassPublic

NamePub      PersonalInfoPub      JobInfoPub      ContestantPub

pgm06_01_01AllClassPublic

pgm06_01_02AllClassPublicSplit

Sample input data file for the Contestant Database program
----------------------------------------------------------------
prj06_02AllClassPrivate

NamePrv      PersonalInfoPrv      JobInfoPrv      ContestantPrv

pgm06_02_01AllClassPrivate

pgm06_02_02AllClassPrivate2

pgm06_02_03AllClassPrivateSplit

pgm06_02_04AllClassPrivateDirectRead

Sample input data file for the Contestant Database program
----------------------------------------------------------------
prj06_03Constructors

Rectangle1      pgm06_03_01DefaultConstructor

Rectangle2      pgm06_03_02NoArgConstructor

Rectangle3      pgm06_03_03ParametizedConstructor

Rectangle4      pgm06_03_04OverloadedConstructors
----------------------------------------------------------------
prj06_04ContestantDatabase

Name      PersonalInfo      JobInfo      Contestant

pgm06_04_01ContestantDatabase

pgm06_04_02ContestantDatabase2

pgm06_04_03ContestantDatabase3

QuizShow      pgm06_04_04QuizShow

pgm06_04_05QuizShowDialogBoxes

Sample input data file for the Contestant Database program
----------------------------------------------------------------
prj06_05ContestantDatabaseDOB

Name      PersonalInfo      JobInfo      Contestant      QuizShow

pgm06_05_01QuizShowDOB

Sample input data file for the Contestant Database DOB program
Calendar Class Features:

Calendar Class Features Demo
Chapter 7: 2D Arrays; The ArrayList Class, Arrays of Objects

prj07_01array2D

pgm07_01_01array2D

pgm07_01_02array2DInitializers

Sample input data file for the 2D Array program
----------------------------------------------------------------
prj07_02ArrayList

Name      PersonalInfo      JobInfo      Contestant      QuizShow

pgm07_02_01QuizShowArrayList

pgm07_02_02QuizShowArrayList2

Sample input data file for the Quiz Show program
----------------------------------------------------------------
prj07_02ArrayListPvt (All Setters Private)

Name      PersonalInfo      JobInfo      Contestant      QuizShow

pgm07_02_01QuizShowArrayList

pgm07_02_02QuizShowArrayList2

Sample input data file for the Quiz Show program
Chapter 8: A Second Look at Classes and Objects

prj08_01StaticClassMembers

Budget      pgm08_01_01StaticClassMembers
----------------------------------------------------------------
prj08_02toString_equals

Name      PersonalInfo      JobInfo      Contestant      QuizShow

pgm08_02_01QuizShow

pgm08_02_02SecurityHole

Sample input data file for the Quiz Show program
----------------------------------------------------------------
prj08_03CopyMethods

Stock      pgm08_03_01CopyMethods

StockThis      pgm08_03_02thisDemo
----------------------------------------------------------------
prj08_04Aggregate

Name      PersonalInfo      JobInfo      Contestant      QuizShow

pgm08_04_01Aggregate

pgm08_04_02SecurityHolePlugged

Sample input data file for the Quiz Show program
----------------------------------------------------------------
prj08_05GarbageCollection

Name      pgm08_04_01Aggregate
Chapter 9: Text Processing and Wrapper Classes

prj09_01WrapperClasses

pgm09_01strFind

pgm09_02replace

pgm09_03strPass

pgm09_04StringBuilderPass

pgm09_05StringPass_replace

pgm09_06StringBuilderPass_replace

pgm09_07StringPass_replaceALL

pgm09_08array

pgm09_09arrayPass

pgm09_10StringTokenizer

pgm09_11StringArrayPass_replaceALL

pgm09_12CompareStrings

pgm09_13CharacterClassMethods
Chapter 10: Inheritance

prj10_01Inheritance

Person      Student      Faculty

pgm_10_01_01InheritanceDemo

pgm_10_01_02InheritanceDemo2
----------------------------------------------------------------
prj10_02ProtectedAccess

Person      Student      TFaculty      Faculty

pgm_10_02_01ProtectedAccess

pgm10_02_02OverridingSuperclassMethod

pgm_10_02_03TheObjectClass

pgm_10_02_04Polymorphism

pgm_10_02_05InstanceofOperator
----------------------------------------------------------------
prj10_03AbstractClasses

Student      CompSciStudent

pgm_10_03_01AbstractClassDemo
----------------------------------------------------------------
prj10_04Interfaces

Person      Displayable

pgm_10_04_01InterfaceDemo
----------------------------------------------------------------
prj10_05Interfaces2

GradedActivity      FinalExam3      Relatable

pgm_10_05_01RelatableExams
----------------------------------------------------------------
prj10_06DefaultMethods

Person      Displayable

pgm_10_06_01DefaultMethodsDemo
----------------------------------------------------------------
prj10_07PolymorphismInterfaces

RetailItem      CompactDisc      DvdMovie

pgm_10_07_01PolymorphicInterfaceDemo
----------------------------------------------------------------
prj10_08AnonymousInnerClasses

IntCalculator      pgm10_08_01AnonymousInnerClassDemo
----------------------------------------------------------------
prj10_09FunctionalInterfacesLambdaExpressions

IntCalculator      pgm10_09_01LambdaDemo      pgm10_09_02LambdaDemo2
Chapter 11: Exceptions and Advanced File I/O

prj11_01Exceptions

pgm_11_01_01ExceptionDemo

pgm_11_01_02DefaultExceptionMessage

pgm11_01_03PolymorphicReferencesToExceptions

Sample input data file for the Exceptions program
----------------------------------------------------------------
prj11_02MulipleExceptions

pgm_11_02_01MultipleExceptions

pgm_11_02_02finallyClause

pgm_11_02_03ErrorRecovery

Sample input data file for the MulripleExceptions program
----------------------------------------------------------------
prj11_03StackTrace

pgm_11_03_01StackTrace

pgm_11_03_02UncaughtExceptions
----------------------------------------------------------------
prj11_04MultiCatch

pgm_11_04_01MultiCatch

Sample input data file for the MultiCatch program
----------------------------------------------------------------
prj11_05ThrowException

Die

pgm_11_05_01ThrowException
----------------------------------------------------------------
prj11_06CustomExceptionClass

BankAccount      NegativeStartingBalance

pgm+11_06_01AccountTest
----------------------------------------------------------------
prj11_07BinaryFiles

pgm_11_07_01WriteBinaryFile

pgm_11_07_02ReadBinaryFile

pgm_11_07_03WriteBinaryFile2

pgm_11_07_04ReadBinaryFile2

pgm_11_07_05AppendBinaryFile
----------------------------------------------------------------
prj11_08RandomAccessFiles

pgm_11_08_01WriteLwtters

pgm_11_08_02ReadRandomLetters

pgm_11_08_03TruncateAndAppend
----------------------------------------------------------------
prj11_09ObjectSerialization

BankAccount2

pgm11_09_01SerializeObjects

pgm11_09_02DeserializeObjects
----------------------------------------------------------------
prj11_10FixedLengthRecords

InventoryItem      InventoryItemFile

pgm11_10_01CreateInventoryFile

pgm11_10_02ReadInventoryFile

pgm11_10_03ModifyRecord


Chapter 15: Recursion

prj15_01Recursion

pgm15_01_01RecursionDemo

Recursive      pgm15_01_02RecursionDemo2

pgm15_01_03RecursiveFactorial

pgm15_01_04gcd

pgm15_01_05FibonacciNumbers

pgm15_01_06BinarySearch

pgm15_01_07quickSort

pgm15_01_08quickSortTrace

pgm15_01_09TowersOfHanoi

Comments or suggestions should be sent to:

ziegler@sci.brooklyn.cuny.edu

Chaim Ziegler, Ph.D.
Brooklyn College
Department of Computer and Information Science
2900 Bedford Avenue
Brooklyn, NY 11210
(718) 951-5000 x2074