Question: Write a Java application that prompts for and reads the radius of a sphere, then print its volume and surface area. Your program have to

 Write a Java application that prompts for and reads the radius

Write a Java application that prompts for and reads the radius of a sphere, then print its volume and surface area. Your program have to include the following features: A. The user is able to determine if he/she will continue to run the program. B. The program will detect invalid number for radius, i.e., negative numbers, and ask the user to re-enter the value, until a valid value is entered. C. The output values (volurme, surface area) will have two decimal point places

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!