Answered step by step
Verified Expert Solution
Link Copied!

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!image text in transcribed

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 lines

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

Solve log 10x8 y 4

Answered: 1 week ago

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago