Question

s Review View Tell me what you w AaBbccDc LT Norma
s Review View Tell me what you w AaBbccDc LT Norma
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The formula for calculating the value of A in terms of 'r' and 'V' is :

Below is the program which has the user defined function which calculates the value of A by taking value of 'r' and 'V' as an input from the user:

#include "stdafx.h"
#include <math.h>
#define pi 3.14

double calculate(float r, float v)
{
   double A = r * ( (pi*r) + sqrt( pow(pi*r,2) + ( (9*pow(v,2))/pow(r,4) ) ) );

   return A;
}
int main()
{
   float R, V;
   printf("Enter the radius :");
   scanf("%f",&R);  

   printf("Enter the Volume :");
   scanf("%f", &V);

   double A = calculate(R, V);
  
   printf("The Value of A is : %f", A);
   printf("\n");

   return 0;
}

OUTPUT (output is validated with the google results)

Right circular cone Solve for surface area A 46.4 T Radius Volume 20.94 C:windows system321 cmd.exe Enter the radius 2 Ehe Va

feel free to ask if you have any doubt :)

Add a comment
Know the answer?
Add Answer to:
s Review View Tell me what you w AaBbccDc LT Normal Paragraph Write in a c...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT