Calculate the area and circumference of a circle , C/C++ Programming

Write a program which incorporates a function named compute and which is used to calculate the area and circumference of a circle. Use the main function for inputs and outputs.

#include

//function prototype

void ComputeCircle(int r,double &,double &);

int main()

{

int radius;

double area, circ;

cout<<"Enter the radius of your circle"<>radius;

ComputeCircle  (radius,area,circ);

cout<<"The area of the circle is:"<

cout<<"The Circumference of the circle is:"<

}

void ComputeCircle(int r, double & A, double & C) 

Posted Date: 8/21/2012 11:26:07 AM | Location : United States







Related Discussions:- Calculate the area and circumference of a circle , Assignment Help, Ask Question on Calculate the area and circumference of a circle , Get Answer, Expert's Help, Calculate the area and circumference of a circle Discussions

Write discussion on Calculate the area and circumference of a circle
Your posts are moderated
Related Questions

Consider text comprised of sentences and sentences comprised of words. Words in a sentence will be space delimited. Given a text and K strings, task is to find out the number valid

Rewrite the recursive bisection root finding function from lecture to be iterative (using a while loop). The function declaration should be root = bisectIter(f,a,b,tol). The input

Purpose For this assignment you will need to create either a function list or a record series for a CRCRS. Instructions Note: Complete only one of the two assignment op

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

how would land elevation have changed if Coronado had traveled 150 miles due west from what is today Arizona instead of east toward New Mexico

Project Description: We own proprietary software which long ago had Copyminder protection added. We no longer have the source code or a relationship with the original coder and

#include #include #include using namespace std; #define MAX 5 #define INF (1 #define DEBUG if(0) #define pii pair #define pb(x) push_back(x) class

Pls i only need help with program 2. #include #include using namespace std; int main() { int FilingStatus; cout cout cout cout cout cout

A: The simplest way is to use a stringstream: #include #include #include using namespace std; string itos(int i) // convert int to string { stringstream s;