Question: !!! Please expalin each line of code !!! Write a program that reads in the radius and length of a cylinder and computes the area
!!! Please expalin each line of code !!!
Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas:
1. Bottom area = Radius * Radius * 3.14 2. Cylinder Volume = Bottom Area * Length 3. Cylinder area = (2 * Radius * 3.14 * Length) + (2 * Bottom area)
Your program should prompt the user to enter the radius and length of a cylinder. The program should output the length and radius of the cylinder along with the area and volume of the cylinder. Limit the output values to two decimal places.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
