(Modify) Modify Program to calculate the weight, in pounds, of the steel cylinder whose volume was determined in that program. This is the formula for determining the weight:
weight = 0.28 (π)(r2)(h)
r is the radius (in inches).
h is the height (in inches) of the cylinder.
// This program calculates the volume of a cylinder,// given its radius and height#includeusing namespace std;int main(){double radius, height, volume;radius = 2.5;height = 16.0;volume = 3.1416 * radius * radius * height;cout << "The volume of the cylinder is " << volume << endl;return 0;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.