CPS406/606 Class examples, Fall 99
Language Basics
Variables and Types: Sum.txt
Source
Example Run
Arrays, For Loop: SumArray.txt
Source
Example Run
While loop, If tests: GradeAverage.txt
Source
Example Run
More arrays and Math: RollDice.txt
Source
Example Run
Strings and Streams: GradeAvStr.txt
Source
Example Run
Method definition and calls: VolumeStr.txt
Source
Example Run
Recursive Function: Factorial.txt
Source
Example Run
Object-Oriented Concepts and Exceptions
Data Class Defintion: Account.txt
Source
Use of this Class: AccountTest2.txt
Source
Example Run