For each of the following, show the output.

a) ```
cout << "12345" << endl;
cout.width( 5 );
cout.fill( '*' );
cout << 123 << endl << 123;
```
b) ```
cout << setw( 10 ) << setfill( '$' ) << 10000;
```
c) ```
cout << setw( 8 ) << setprecision( 3 ) << 1024.987654;
```
d) ```
cout << showbase << oct << 99 << endl << hex << 99;
```
e) ```
cout << 100000 << endl << showpos << 100000;
```
f) ```
cout << setw( 10 ) << setprecision( 2 ) << scientific << 444.93738;
```


a) 12345
**123
123
b) $$$$$10000
c) 1024.988
d) 0143
0x63
e) 100000
+100000
f) 4.45e+002

Computer Science & Information Technology

You might also like to view...

________ is a technology applied to digital media files such as music, eBooks, and videos to impose restrictions on the use of these files

Fill in the blank(s) with correct word

Computer Science & Information Technology

?A tab stop is a point on the horizontal ruler that indicates the location at which to align text.

A. Yes B. No

Computer Science & Information Technology

The term web app is an application stored on a web server.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of these may be a felony?

A. natural hazards B. profile theft C. cyberbullying D. software bug E. procedural errors

Computer Science & Information Technology