Question: Write a Java program which uses a function to calculate the perimeter of a rectangle. a function named volume to calculate the volume of a
- Write a Java program which uses a function to calculate the perimeter of a rectangle.
- a function named volume to calculate the volume of a cylinder
volume = 3.14 x radius x radius x height
.b function named volume to calculate the volume of a cuboid
volume = Length x width x ht
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
