/*******************************************************************************
 *  Program Title:  Babcock
 *  Files:          Babcock.java Scooper.java Tub.java
 *  Main Class:     Babcock
 *
 *  Author:  Brian Lee Bowers     blbowers@cs.wisc.edu
 *  Collaborators:  NONE
 *
 *  Due Date:  NONE
 *  Date Completed:  14 February 2001
 *
 *  Compiler:  Sun JDK javac (JDK 1.2.2)
 *  Platform:  SunOS 5.6 (Intel x86)
 ******************************************************************************/

/**
 *  An ice cream scooper.
 */
public class Scooper {

	/**  the radius of the scooper (in inches) [0.0, infinity)  */
	private double myRadius;

	/**
	 *  Class constructor - given a radius in inches
	 *
	 *  @param radius the radius of the scooper in inches [0.0, infinity)
	 */
	public Scooper(double radius) {
		myRadius = radius;
	}

	/**
	 *  Get the volume, in cubic inches, of the scooper.
	 *
	 *  @return the volume in cubic inches
	 */
	public double getVolume() {
		return (4.0 / 3.0 * Math.PI * Math.pow(myRadius, 3.0));
	}
}
		
