Search:

Type: Posts; User: Alex L

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    3,847

    Re: Sphere (Volume/Surface Area)

    Thank you, that works a treat :)
  2. Replies
    4
    Views
    3,847

    Re: Sphere (Volume/Surface Area)

    Thank you for pointing that out. I didn't notice it. By changing part of the code to this:


    private double volume() {
    volume = 1.33333333 * Math.PI * Math.pow(radius(), 3);
    return volume;
    ...
  3. Replies
    4
    Views
    3,847

    Sphere (Volume/Surface Area)

    A question (not homework, a question from a book, don't worry) asks me to create a program to work out the volume and surface area of a sphere.

    The surface area part works fine, it is the volume...
Results 1 to 3 of 3