// area BY author name, CSCI 2170-sec, Due: mm/dd/yy // PROGRAM ID: area.cpp / The area of a circle program // AUTHOR: author name // INSTALLATION: MTSU // REMARKS: Example C++ program illustrating input, computation, output. #include using namespace std; const float PI=3.1415926; int main() { float radius; // Radius of the circle (input) float area; // Area of the circle float circumference; // Circumference of the circle // Prompt the user for the radius cout << "Please enter the radius: "; cin >> radius; // Compute the area area = PI * radius; // Compute the circumference circumference = 2 * PI * radius; // Output results cout << "A circle of radius " << radius; cout << " has area " << area << " and circumference " << circumference << endl; return 0; }