Which of the following sets of statements will set floating point output to the stream outStream to fixed point with set 3 places of decimals? In the explanation, you must give any necessary #include directives and using directives or declarations.

a) ```
outStream.setf(ios::fixed);
outStream.setf(ios::showpoint);
outStream.precision(2);
```
b) ```
outStream.setf(ios::fixed | ios::showpoint);
outStream << setprecision(2);
```
c) ```
outStream << setflag(ios::fixed);
outStream << setflag(ios::showpoint);
outStream << setprecision(2);
```
d) ```
outStream.flags(ios::fixed);
outStream.flags(ios::showpoint);
outStream.precision(2);
```

a) ```
outStream.setf(ios::fixed);
outStream.setf(ios::showpoint);
outStream.precision(2);
```
b) ```
outStream.setf(ios::fixed | ios::showpoint);
outStream << setprecision(2);
```

Computer Science & Information Technology

You might also like to view...

If you want all the slices of a pie chart to explode for emphasis, you can select the exploded pie chart type.

a. true b. false

Computer Science & Information Technology

The third part of the filename is the software ____.

A. architecture B. release number C. date D. version

Computer Science & Information Technology