Question: To practice the use of variable declarations and arithmetic expressions in Java. Assignment : Write a program that declares a radius value as an integer

To practice the use of variable declarations and arithmetic expressions in Java.

Assignment:

Write a program that declares a radius value as an integer of your choice (between 10 and 100) and then calculates and prints (1) the area and circumference of a circle with that radius, and (2) the volume and surface area of a sphere with that radius.

You will need to search the web if you do not know any of the four formulas used in the calculations mentioned above.

Please submit your source code file (the one with the .java extension) into the dropbox for the week.

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!