Answer:
A)cout<<setw(9)<<fixed<<setprecision(2)<<34.789;
B)cout<<setw(5)<<fixed<<setprecision(3)<<7.0;
C)cout<<fixed<<5.789E12;
D)cout<<left<<setw(7)<<67;
Explanation:
Stream Manipulators are functions specifically designed to be used in conjunction with the insertion (<<) and extraction (>>) operators on stream objects in C++ programming while the 'cout' statement is used to display the output of a C++to the standard output device.
setw: used to specify the minimum number of character positions on the output field
setprecision: Sets the decimal precision to be used to format floating-point values on output operations.
fixed: is used to set the floatfield format flag for the specified str stream.
left: adjust output to the left.
A) To display the number 34.789 in a field of eight spaces with two decimal places of precision. cout<<setw(9)<<fixed<<setprecision(2)<<34.789;
B) To display the number 7.0 in a field of six spaces with three decimal places of precision. cout<<setw(5)<<fixed<<setprecision(3)<<7.0;
C) To print out the number 5.789e+12 in fixed-point notation. cout<<fixed<<5.789E12;
(D) To display the number 67 left-justified in a field of six spaces. cout<<left<<setw(7)<<67;