Design pseudocode for a program (name it Cylinder) to compute the volume of a cy
ID: 3742720 • Letter: D
Question
Design pseudocode for a program (name it Cylinder) to compute the volume of a cylinder using the following formulas (PI is 3.14): Area = radius * radius * PI Volume = area * length The program reads the radius and length from the user and then computes the volume. Sample run 1: Enter radius: 5.5 Entered length: 12 The Volume is 1139.82 Sample run 2: Enter radius: 1.0 Entered length: 1.0 The Volume is 3.14 Sample run 3: Enter radius: 6.5 Entered length: 10.0 The Volume is 1326.65 Design pseudocode for a program (name it Cylinder) to compute the volume of a cylinder using the following formulas (PI is 3.14): Area = radius * radius * PI Volume = area * length The program reads the radius and length from the user and then computes the volume. Sample run 1: Enter radius: 5.5 Entered length: 12 The Volume is 1139.82 Sample run 2: Enter radius: 1.0 Entered length: 1.0 The Volume is 3.14 Sample run 3: Enter radius: 6.5 Entered length: 10.0 The Volume is 1326.65 Design pseudocode for a program (name it Cylinder) to compute the volume of a cylinder using the following formulas (PI is 3.14): Area = radius * radius * PI Volume = area * length The program reads the radius and length from the user and then computes the volume. Sample run 1: Enter radius: 5.5 Entered length: 12 The Volume is 1139.82 Sample run 2: Enter radius: 1.0 Entered length: 1.0 The Volume is 3.14 Sample run 3: Enter radius: 6.5 Entered length: 10.0 The Volume is 1326.65Explanation / Answer
/*If you have any query do comment in the comment section else like the solution*/
Pseduo Code:
read input(radius);
read input(length);
PI=3.14;
area=radius*radius*PI;
volume=area*length;
print volume;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.