Question: Problem Write a Java program that asks the user the radius of a sphere and then the program calculates the sphere's volume as well as

Problem Write a Java program that asks the user the radius of a sphere and then the program calculates the sphere's volume as well as the sphere's surface area and displays the results with two digits of precision in the decimal part. Use the class JOptionPane for data Input and Output. Optionally the user can repeat the calculation several times.

V=(4/3) PI r3 , S=4 PI r2

Upload your solution in two files; sphere.java and sphere.jar.

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!