Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C please and thank you! Write some code inside the main function that calculates the volume of a cone. The formula for calculating the
In C please and thank you!
Write some code inside the main function that calculates the volume of a cone. The formula for calculating the volume of a cone is as follows 1 V = 5 x A x 72 x h 3 The value of a = 3.14159. Make sure to declare pi as a constant variable or else points will be deducted. The graders will be checking for this and not the script! You should have the following exact output in your code for the script to give you credit. Display the result up to four decimal places. Be very careful with this problem. Some students may run into small errors do to loss of information. Make sure 1/3 is 0.3 repeating and not just 0. All variables are type double. You do not need to worry about negative values. We have not discussed conditions yet. Enter the radius: 10.0 Enter the height: 565.0 The volume of the cone is 59166.6117 Figure 4: Output for question 4. The output must match exactly to receive credit. This includes white space and new linesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started