Question: program in javascript (Compute the volume of a cylinder) Write a program that reads in the radius and length of a cylinder and computes the
program in javascript
(Compute the volume of a cylinder) Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas:
area = radius * radius * PI
volume = area * length
The program begins by stating the name of the programmer, describes the program to the user, requests a value for the radium and a value for the length (both are real numbers). The program then computes the area and volume, and displays the result as shown here. The program must be a general solution to the problem. I will try my own numbers when I run it.
Here is what you are to accomplish with this program (BUT, formatted as shown below!):
Program by: Your name
This program will take the radius and length of a cylinder, given as real numbers, and will compute the area and volume of the cylinder, also displayed as real numbers.
Enter the radius of the cylinder: 5.5
Enter the length of the cylinder: 12.0
Results:
The area is 95.0331
The volume is 1140.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
