Question: ex3 Review Exercise 5 from Lab 3. a) Write a method called circleCirc that takes a single double parameter and returns a double value that
Review Exercise 5 from Lab 3. a) Write a method called circleCirc that takes a single double parameter and returns a double value that is equal to the circumference of a circle. The method should calculate the circumference using the absolute value double as the radius. b) Write a method called circleArea that takes one double parameter and returns a double value that is equal to area of a circle. The method should calculate the area using the absolute value of the double parameter as the circles radius. c) Write a method called sphereVolume that takes one double parameter and returns a double value that is equal to volume of a sphere. The method should calculate the volume using the absolute value of the double parameter the spheres radius. d) Write a main method that prints to output an appropriate prompt to the user, then uses the Scanner class to collect the radius of a circle. Print out both the circumference and area of the circle, using a nicely formatted message that also includes the original radius value, followed by the volume of a sphere having the same radius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
