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);
```
You might also like to view...
Draw and label the lattice of consistent states (p1 state, p2 state), beginning with the initial state (0,0).
The figure above shows events occurring for each of two processes, p1 and p2. Arrows between processes denote message transmission.
Methods that are not interface methods and that do not provide implementations must be declared using keyword _______ .
Fill in the blank(s) with the appropriate word(s).
GUI components are often referred to as ____.
A. widgets B. gadgets C. nodes D. objects
The Web analytic that measures page popularity at a site is ____.
A. unique visitors B. click-stream analysis C. page views D. repeat visitors