Question: Write a program with a method called sphereVolume that accepts a radius as a parameter and returns the volume of a sphere with that radius.

  1. Write a program with a method called sphereVolume that accepts a radius as a parameter and returns the volume of a sphere with that radius. For example, the call sphereVolume(2.0) should return 33.51032162829. The formula for the volume= 4/3* PI * r*r*r

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!