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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started