Question: Given a circular ring, for example a piece of garden hose made into a circle and joined at the ends, you can calculate the volume
Given a circular ring, for example a piece of garden hose made into a circle and joined at the ends, you can calculate the volume and surface area by using the formulas: V = 2 ?2Rr2 and S = 4 ?2Rr where R is the radius of the ring and r is the radius of the cross section of the hose. Note illustration at right. Write a program to ask for those two radii and display the Volume and surface area.
For PI, use: const double PI = 3.14159; This will go BEFORE main, but after using namespace std; A typical run would be: Enter radius of ring and radius of cross section 25.75 3 For a ring with a radius of 25.750 and cross section radius of 3.000 The volume is: 4574.554 The surface area is: 3049.703
Dreular Ring cross section radius ring radius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
