(Desk check) Write the display produced by the following statements:
a.cout << "The number is " << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 26.27 << endl; cout << "The number is " << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 682.3 << endl; cout << "The number is " << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 1.968 << endl;
b.cout << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 26.27 << endl;cout << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 682.3 << endl;cout << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 1.968 << endl;cout << "------\n";cout << setw(6) << setiosflags(ios::fixed) << setprecision(2) << 26.27 + 682.3 + 1.968 << endl;
c.cout << setw(5) << setiosflags(ios::fixed) << setprecision(2) << 26.27 << endl;cout << setw(5) << setiosflags(ios::fixed) << setprecision(2) << 682.3 << endl;cout << setw(5) << setiosflags(ios::fixed) << setprecision(2) << 1.968 << endl;cout << "-----\n";cout << setw(5) << setiosflags(ios::fixed) << setprecision(2) << 26.27 + 682.3 + 1.968 << endl;
d.cout << setw(5) << setiosflags(ios::fixed) << setprecision(2) << 36.164 << endl;cout << setw(5) << setiosflags(ios::fixed) << setprecision(2) << 10.003 << endl;cout << "-----" << endl;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.