Question: Any help would be great.C++ 2. Write a program to calculate the volume of a truncated cone given the height, the radius of the base,

 Any help would be great.C++ 2. Write a program to calculate

Any help would be great.C++

2. Write a program to calculate the volume of a truncated cone given the height, the radius of the base, and the angle in degrees formed by the centerline and the side of the cone at the apex. The formula for the volume is 3tan 3 where y is the height. R is the radius, and is the angle in radians Enter the value of pi as a defined (symbolic) constant equal to 3.14159265 or declare it as a constant double. Prompt the user for values of height y, radius R, and angle in degrees Convert the angle to radians before using the formula to find the volume. Use math functions for raising to a power and for the tangent function. Print the volume with 3 decimal digits Test with the following values R 2.5 meters v- 3 meters angle 30 degrees

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!