//Allan Clark Alcircle.cpp// //Sept 25/02// //To Calculate a circles area// #include //The library call for input/output// #include //The library call for clrscr()// #include //The library call used to manipulate string variables. (strcpy)// #include //The library call used to manipulate input/output // #include //The library call to acquire the system's date// int main(void) { char answer ; double area, radius1, radius, pi; //Fowler Statement// cout << endl << endl; cout << " ********************************************" << endl; cout << " *This Program will calculate a circles area*" << endl; cout << " * Using Cout and Cin statements *" << endl; cout << " ********************************************" << endl; cout << endl; cout << " // Allan Clark - Programmer //" << endl << endl; cout << " Press Any Key to Continue"; getch(); clrscr(); //Clears the fowler screen and goes to the input screen// time_t t=time(NULL); cout<< ctime(&t)<< endl << endl; //Displays the time// cout << " ******************************************" << endl; cout << " * To calculate the area of a circle all *" << endl; cout << " * that is needed is a simple equation: *" << endl; cout << " * Area = Pi * Radius(Radius is squared) *" << endl; cout << " ******************************************" << endl; cout << endl; cout << " Please enter the radius of the circle: "; cin >> radius; clrscr(); //Clears the input screen and goes to the output screen// pi = 3.14; area = pi * radius; radius1 = radius * radius; cout << endl << endl << " Area of a Circle" << endl << endl; cout << " Using the Radius of "; cout << setiosflags(ios:: fixed); cout << setprecision (3); cout << radius << " The area of the circle is: " << area; cout << endl << endl; cout << " - Thank You -"; return 0; }