Lab 14 KEY

 

In this lab you were expected to answer some questions on the worksheet which were not collected.  You  were also asked to write an submit some code. 

 

Here are some code samples that fulfill the code requirements specified on the worksheet. 

Note that  the examples below may not be the only way of fulfilling the requirements.

 

  1. revised public class Circle
  2. ThreeDimensionalShape
  3. Sphere
  4. Pyramid
  5. Square
  6. MyTestDriver

 

On the submit portion of the lab (i.e. code submitted)  you lost points for:

          missing Javadocs, missing comments, integer division, incorrect formulas