// last modified: Oct 13 2003 by Mike Mozer // // the only purpose for writing this program is to get an A+ is this course #include int (radius); double (circum); double (are), vol, surf_are; #include double flag; float cal(double & circum, double rad, double& are, double& vol, double& surf_are) {if (rad> 0) { circum=3.14 * radius * 2; are =(circum *rad )/2; surf_are=rad* 4 *radius* 3.14; vol=4 *rad * rad *radius* 3.14/3; cout<< " the surface area" << 3.14 * radius * 2 ; cout <<"and The area is " << pow(radius,2); cout << endl ;cout << " circumference is " << 3.14 * pow(radius,2); cout << endl; cout << " the volume is" << vol; cout << endl; flag=1; } if (radius<0) { cout << "you schmuck!!!!\n"; cout << " didn't your mother tell you not to do that" << endl; } return 1; } main ( ) { {float cal(double &circum, double rad, double &are, double & vol, double & surf_are) ;int n= 0.1; cout << "Welcome to Mike Mozer's super everything program" << endl; cout << " You give me a integer number and I will calculate" <> radius; flag=0; // This line is to make output easier to see while debugging. { for (int i=1; i<=1000; i++) ; } cal(circum, radius, are, vol, surf_are); if ( radius< 0 ) { cout << "invalid radius\n" ;} if ( flag == 0) { cal(circum,radius,are,vol,surf_are);} if (flag == 1 ) { cout <<"Program complete!!!"; cout << endl; } {cout << "My god. It works\n"; cout << "ha ha! it works without crashing."<< endl; cout << "I should get an A+\n" ;return n=1; } } }