// class 3 demo 4 #include using namespace std; int main() { double num = 0.0; cout << "Enter an unrounded number: "; cin >> num; cout.setf(ios::fixed); cout.precision(2); // rounded to the penny cout << "Rounded, the number is " << num << endl; double measurement = 567.455678786556; cout.precision(0); // rounding to whole number cout << measurement << endl; return 0; }// end of main