Question: 2.1 Computation (hw02a_base.c) [10 points For this program, you will write a program to compute the total volumefor aumber of cylinders. A cylinder may have
2.1 Computation (hw02a_base.c) [10 points For this program, you will write a program to compute the total volumefor aumber of cylinders. A cylinder may have different values for height and radius. Study the base code and make the following changes: .Add a prompt for the number of cylinders to sum. Make sure to use the control symbol for integers. 2 points Create aloop based on the number of cylinders the user enters. [2 points Within the loop, prompt for height and radius parameters (allow floating point numbers), and calculate the volume for that particular cylinder. 4 points Display the total volume sum back to the user. Make sure to use the right control symbol. 2 points collatz conjecture
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
