Answer to Question #284553 in Algorithms for She

Question #284553

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 * π


volume = area * length

1
Expert's answer
2022-01-03T10:46:33-0500
Start
  Declare Real PI=3.14
  Declare Real radius
  Declare Real area  
  Declare Real volume 
  Declare Real length
  Display "Enter the radius of a cylinder: "
  Input radius
  Display "Enter the length of a cylinder: "
  Input length
  Set area = radius * radius * PI
  Set volume = area * length
  Display "Area: ",area 
  Display "Volume: ",volume 
Stop

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS