CPS 1 - Spring, 1998 - Ramm 1/28 #6
- Announce
- Continue to Read Chapter 2
- New Lab Start Tomorrow
Chapt 1. An Introduction to Programming: Coding Decision Trees
- Car Diagnosis Demo (Code Detail)
CarDx.java,
car.html
- Additional Things to Note
- action method
- events
- return statements
- assignment statements
- method invocation
- Decision Trees Vocabulary
- tree, binary tree
- node, edge, path, root, leaf
- parent, child
- Coming Lab on Trees
- Tree Object
- Data File (animal.dat)
- program is data, data defines program
- Demo of Software
- Class to Create Tree from File
- Class to Navigate Tree Interactively
- Using Primitive Data Types: Integers
- Does not require a
new statement to create
- Primitive types not classes
- Must declare
- Should initialize
- Other primitive types include: boolean, char, float
- Example Using Integers.
Count.java,
count.html
- Example Dong Multiple Tallies
Tallies.java,
tallies.html