need of java expert - 29240

Solution Detail
Price: $20.00
  • From: ,
  • Posted on: Tue 22 Oct, 2013
  • Request id: # 29231
  • Purchased: 1 time(s)
  • Average Rating: No rating
Request Description
Solution Description

public class Question2 implements ActionListener{

    private static float rad;

    private static float h;    

    /**

     * @param args the command line arguments

     */

    public static float Calculate_SurfaceArea()

    {

        double answer=2 * Math.PI * rad * rad + 2 * Math.PI * rad * h;

        return (float)answer;

    }

    public static float Calculate_Volume()

    {

        double answer=Math.PI * rad * rad * h;

        return (float)answer;

    }

     publi