Question: Write a Java program which uses the concept of function to write the following function a function named area to calculate the surface area of
Write a Java program which uses the concept of function to write the following function
- a function named area to calculate the surface area of a sphere
area = 4 x 3.14 x radius x radius
2.Write statements that assign random integers to the variable n in the following ranges: Use the random function to generate the numbers. Put the statements in a Java Program and run it.
- a) 1 n 51
- b) 1 n 900
- c) 0 n 391
- d) 1000 n 5127
- e) 17 n 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
