March 17 Lecture

 

Let’s look at  Contact.java on page 503 in our text and at ContactA.java which we modified in class

 

The slides for all of the chapters in the book have been posted under Resources on the web page.

 

Formulas for surface area of a pyramid were found by using Google

http://www.glencoe.com/sec/math/prealg/prealg03/extra_examples/chapter11/lesson11_5.pdf

 

http://www.rose.edu/faculty/gjackson/aws-7.4.htm

 

Slides from class

         

Code for Triangle example

          Triangle.java                   TriangleTest.java

 

Improved versions of Triangle (separating declarations from initializations and instantiations.

          Triangle2.java       Triangle2Test.java

 

Various Code examples written by Professor Bernstein

to run and understand

Note: ChangeMaker runs slowly

ChangeMaker.java   ChangeMakerDriver.java  

         

          Try this one on a directory that isn’t too big (i.e. your floppy drive)

DirectorySizeCalculator.java  Size.java

 

          See if you can understand these           

          RadixFormatter.java  RadixFormatterDriver.java

RadixPrinter.java RadixPrinterDriver.java