Question: Write a java program that reads in the radius and length of a cylinder and computes the area and the volume using the following formulas:

Write a java program that reads in the radius and length of a cylinder and computes the area and the volume using the following formulas:
Area = radius * radius *pi
Volume = area * length
Here is a sample run:
Enter the radius of a cylinder: 5.5
Enter the length of a cylinder: 12
The area is 95.0331
The volume is 1140.4
 Write a java program that reads in the radius and length

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!