Problem

(Modify) Modify Program to calculate the weight, in pounds, of the steel cylinder whose vo...

(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#include using 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;}

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3.1