CS302 Lectures 1 & 2: Cylinder Volume Example

In This Page: Files | Class Diagrams        Related Pages: Zip File Instructions

 
This example will be used to illustrate how we can make improvements to a simple calculation 
as our Java programming skills become more sophisticated.

CylinderVolume1: hard-coded calculation requiring editing and recompiling for different sized cylinders
CylinderVolume2: improved by using input to get dimensions of cylinder from program user
 

Files
Class Diagrams
     
Last Updated: 9/22/00        © 2000 Jim Skrentny, CS302 Coordinator, skrentny@cs.wisc.edu