/******************************* MAIN HEADER ********************************** Title: Calculating Program 1 Author: James D. Skrentny, skrentny@cs.wisc.edu copyright 2009-2012 all rights reserved Course: CS 302, Lectures 1 & 2 **************************** 80 columns wide *********************************/ //Code sample for a simple calculation but using hardcoded height and radius. //IMPROVEMENT? Allow user to enter height & width! //IMPROVEMENT? Make output more informative! public class CylinderVolume { public static void main (String[] args) { final double PI = 3.14159; double volume; int height = 121, radius = 11; volume = PI * radius * radius * height; System.out.println(volume); } }