Home Segments Top Top Previous Next

125: Practice

Write a program that computes the volume of any planet in cubic meters. Have the volume computation performed by a method named sphereVolume. Arrange to provide the radius by wiring a value into the main method.