// Problme 3.11 // Show the value of x after each of the following statements is performed. // // a.) x = fabs( 7.5 ) // b.) x = floor( 7.5 ) // c.) x = fabs( 0.0 ) // d.) x = ceil( 0.0 ) // e.) x = fabs( -6.4 ) // f.) x = ceil(-6.4) // g.) x = ceil( -fabs(-8+floor(-5.5))) // // GRADER: Note that the students are NOT required to write a program for // this assignment. They are just required to determine the values of the // previous functions. // #include #include main() { cout << fabs(7.5) << endl; // 7.5 cout << floor(7.5) << endl; // 7.0 cout << fabs(0.0) << endl; // 0.0 cout << ceil(0.0) << endl; // 0.0 cout << fabs(-6.4) << endl; // 6.4 cout << ceil(-6.4) << endl; // -6.0 cout << ceil( -fabs(-8+floor(-5.5))) << endl; // -14.0 return 0; }