CS 211
Programming Assignment #1

note change of due date
Due Wednesday, February 24 at class time

Program

Write a Java program named SphereCalculations that generates a random value for the radius of a sphere and prints the sphere's volume and surface area. Use the formulas below, where r represents the radius of the sphere: Your program must satisfy the following requirements:

Sample Execution:

For a sphere with radius: 2
Volume: 33.5103
Surface area: 50.2655

Links to Java docs that are useful for this assignment:

Submit: