1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
9966 [12]
4 years ago
8

Write cout statements with stream manipulators that perform the following:

Engineering
1 answer:
Semenov [28]4 years ago
7 0

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;

You might be interested in
. In order to prevent injury from inflating air bags, it is recommended that vehicle occupants sit at least __________ inches aw
scZoUnD [109]
10 inches is the answer
8 0
3 years ago
Read 2 more answers
The waffle slab is: a) the two-way concrete joist framing system. b) a one-way floor and roof framing system. c) the one-way con
GREYUIT [131]

Answer:

a) the two-way concrete joist framing system

Explanation:

A waffle slab is also known as ribbed slab, it is a slab which as waffle like appearance with holes beneath. It is adopted in construction projects that has long length, length more than 12m. The waffle slab is rigid, therefore it is used in building that needs minimal vibration.

4 0
3 years ago
If you get a flat in the front of your car, your car will:
juin [17]

Answer:

stop and might even crash

Explanation:

6 0
3 years ago
What does an engineer do? List as many types of engineers as you can.
BARSIC [14]

Answer:

Mechanical Engineering

Chemical Engineering

Civil Engineering

Explanation:

I got it from my old homework And I learn those at school ( Thank You For The Points)

7 0
3 years ago
A gas pressure difference is applied to the legs of a U-tube manometer filled with a liquid with specific gravity of 1.7. The ma
MArishka [77]

Answer:

5320.6 Pascal

Explanation:

Manometer is a pressure measuring device use to measure gas pressure .

Pressure difference in Manometer is a function of density,gravity and the height difference of the liquid.

Pressure difference = density x acceleration due to gravity x difference in height of liquid

Density of liquid = specific gravity of object x density of water.

Density of water = 997 kg/m^3

Specific gravity of liquid = 1.7

Density of liquid = 997 x 1.7 =1694.9kg/m^3

g= 9.81 m/s^2

h =320mm = 0.320m

Pressure difference = 1694.9 x 9.81 x 0.320 = 5320.6 Pascal

3 0
4 years ago
Read 2 more answers
Other questions:
  • A steady state and continuous separator has a total feed rate of 100. kg/h of a 55.0 wt. % benzene mixture. The balance is tolue
    7·1 answer
  • Matthew wants to manufacture a large quantity of products with standardized products having less variety. Which type of producti
    5·1 answer
  • In highways the far left lane is usually the _____
    11·2 answers
  • all of the following are steps in the problem solving process except a. try, b. reflect, c. debug, d. define
    11·1 answer
  • Technician A states that a scan tool can read
    13·1 answer
  • What car has autopilot?
    14·2 answers
  • ASAP correct answer plss When you are driving, if you see this traffic sign it means
    8·1 answer
  • What speeds did john j montgomerys gliders reach
    12·1 answer
  • Does anyone know how to fix this? It's a chromebook and project where I have to try to fix it​
    9·1 answer
  • Flip-flops are normally used for all of the following applications, except ________. logic gates data storage frequency division
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!