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
A 100-horsepower, three-phase squirrel-cage induction motor is connected to a 240-volt line. A dual-element time-delay fuse is t
antoniya [11.8K]

Based on the National Electrical Code (NEC), a 450-Ampere fuse should be used to protect this polyphase (three-phase) squirrel cage inductor motor.

<u>Given the following data:</u>

  • Power rating = 100-horsepower.
  • Voltage = 240 volt.

<h3>How to determine the correct fuse rating?</h3>

According to Table 430.52 of the National Electrical Code (NEC), a dual-element time delay fuse should be calculated at 175% (1.75) of the full-load current rating for an alternating current (AC) polyphase (three-phase) squirrel cage inductor motor.

In this scenario, the squirrel cage inductor motor didn't list a NEMA design code on its nameplate. Thus, we'll assume that the inductor motor is design B and its fuse rating is given by:

Fuse rating = 248 × 1.75 × 434

In conclusion, the nearest standard fuse size which is above the computed value listed in Section 240.6 of the National Electrical Code (NEC) is 450 amperes.

Read more on National Electrical Code here: brainly.com/question/10619436

#SPJ1

6 0
2 years ago
A rectangular plate casting has dimensions 200mm x 100mm x 20mm. The riser for this sand casting mold is in the shape of a spher
9966 [12]

Answer:

Diameter of riser =6.02 mm

Explanation:

Given that

Dimensions of rectangular plate is 200mm x 100mm x 20mm.

Volume of rectangle V= 200 x 100 x 20 mm^3

Surface area of rectangle A

A=2(200 x 100+100 x 20 +20 x 200)mm^2

So V/A=7.69

We know that

Solidification times given as

t=K\left(\dfrac{V}{A}\right)^2   -----1

Lets take diameter of riser is d

Given that riser is in spherical shape so V/A=d/6

And

Time for solidification of rectangle is 3.5 min then time for solidificartion of riser is 4.2 min.

Lets take \dfrac{V}{A}=M

\dfrac{M_{rac}}{M_{riser}}=\dfrac{7.69}{\dfrac{d}{6}}

Now from equation 1

\dfrac{3.5}{4.2}=\left(\dfrac{7.69}{\dfrac{d}{6}}\right)^2

So by solving this d=6.02 mm

So the diameter of riser is 6.02 mm.

3 0
3 years ago
The following figures were obtained in a standard tensile test on a specimen of low carbon steel with a circular sectional area:
liq [111]

Answer:

See Explaination

Explanation:

1)here for given stress strain curve graph is given as follows

where for getting stress,S=F/A=4F/(pi*(50*10^-3)^2)

for strain=e=dl/l=dl*10^-3/100 mm/mm or m/m

2)so graph is as follows

3)for getting youngs modulus of elasticity we must know slope of graph stress verses strain and for straight line in elastic region upto 12 point we have elastic region and from that we get E as

E=slope of graph for first 12 points=S/e=14.5665*10^9/.812=17.9390*10^9 N/m2

4)for getting ultimate tensile stress at which specimen bears maximum load without failure so we get UTS as

UTS=maximum load/area=40*10^6/1.9634=20.3728*10^6 N/m2

5)percentage reduction in area is given by

percentage reduction in area=[original area-final area/original area]*100

Percent reduction=[5062-10^2]*100/50^2=96%

6)percentage elongation is given by

percent elongation=[final length-original length/original length]*100

final length at fractureis=14.56+100=114.56 mm

so we get percent elongation as=[114.56-100/100]*100=14.56%

7)true fracture stress is given by load at fracture devided by true area at fracture

Sf=load/(true area)=4*28*10^3/(pi*(10*10^-3)^2)=356.5070*10^6 N/m2

8 0
4 years ago
A ramp from an expressway with a design speed of 30 mi/h connects with a local road, forming a T intersection. An additional lan
hram777 [196]

Answer:

the width of the turning roadway = 15 ft

Explanation:

Given that:

A ramp from an expressway with a design speed(u) =  30 mi/h connects with a local road

Using 0.08 for superelevation(e)

The minimum radius of the curve on the road can be determined by using the expression:

R = \dfrac{u^2}{15(e+f_s)}

where;

R= radius

f_s = coefficient of friction

From the tables of coefficient of friction for a design speed at 30 mi/h ;

f_s = 0.20

So;

R = \dfrac{30^2}{15(0.08+0.20)}

R = \dfrac{900}{15(0.28)}

R = \dfrac{900}{4.2}

R = 214.29 ft

R ≅ 215 ft

However; given that :

The turning roadway has stabilized shoulders on both sides and will provide for a onelane, one-way operation with no provision for passing a stalled vehicle.

From the tables of "Design widths of pavement for turning roads"

For a One-way operation with no provision for passing a stalled vehicle; this criteria falls under Case 1 operation

Similarly; we are told that the design vehicle is a single-unit truck; so therefore , it falls under traffic condition B.

As such in Case 1 operation that falls under traffic condition B  in accordance with the Design widths of pavement for turning roads;

If the radius = 215 ft; the value for the width of the turning roadway for this conditions = 15ft

Hence; the width of the turning roadway = 15 ft

5 0
3 years ago
A 120-volt fluorescent ballast has an input current of 0.34 ampere and an input power rating of 22 watts. The power factor of th
melisa1 [442]

Answer:

PF= .54

Explanation:

Power Factor equals working/real power (W) over apparent power (VA). 1.0 PF is an efficient equipment. PF= 22/(120*.34)

4 0
3 years ago
Other questions:
  • A stress researcher wants to look at the effect of meditation on anxiety. To do this, she creates two groups of subjects: one gr
    13·1 answer
  • Code scramble: make the program sort the three numbers x, y and z into increasing order, so that x has the smallest value, y has
    8·1 answer
  • As an input signal drives the base voltage in a positive direction, base current will_____ and collector current will _____.
    5·1 answer
  • A vehicle has a crimped fuel return line. What effect will this have on 5-Gas analyzer gas readings?
    5·2 answers
  • Cuál de las siguientes es la mejor manera de practicar sus habilidades de tecnología de secundaria?
    9·1 answer
  • Vocabulary review for shop
    6·1 answer
  • A balanced three phase load is supplied over a three-phase , 60 hz, transmission line with each line have a series impedance of
    10·1 answer
  • It is proposed to deposit a 5 μm thick nickel coating uniformly on all surfaces of a ceramic strip measuring 15 cm x 5 cm x 2 cm
    7·1 answer
  • A hypothetical metal alloy has a grain diameter of 1.7 102 mm. After a heat treatment at 450C for 250 min, the grain diameter ha
    8·1 answer
  • If a soil has e=0.72, moisture content = 12% and Gs=2.72, find the weight of water in KN/m3 to be added to make the soil saturat
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!