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
Rudiy27
3 years ago
9

What will the following segment of code output? score = 95; if (score > 95) cout << "Congratulations!\n"; cout <<

"That's a high score!\n"; cout << "This is a test question!" << endl; Answers: That's a high score! This is a test question! Congratulations! That's a high score! This is a test question! This is a test question! Congratulations! That's a high score! None of these
Engineering
1 answer:
Anarel [89]3 years ago
5 0

Answer:

That's a high score!

This is a test question!

Explanation:

The reason these two lines are printed and not the first one is simple. After the 'IF' condition has been stated, there is no use of parenthesis such as { and } to enclose the next lines. This means that only the first line after the 'IF' condition may be read or skipped depending on whether the condition (score>95) is met. Since the score is not larger than 95, and the 'IF' condition fails, the line 'Congratulations!' is not printed. The next two lines of the code are read as normal because they do not depend on the 'IF' condition.

You might be interested in
The period of a pendulum T is assumed to depend only on the mass m, the length of the pendulum `, the acceleration due to gravit
zzz [600]

Answer:

The expression is shown in the explanation below:

Explanation:

Thinking process:

Let the time period of a simple pendulum be given by the expression:

T = \pi \sqrt{\frac{l}{g} }

Let the fundamental units be mass= M, time = t, length = L

Then the equation will be in the form

T = M^{a}l^{b}g^{c}

T = KM^{a}l^{b}g^{c}

where k is the constant of proportionality.

Now putting the dimensional formula:

T = KM^{a}L^{b}  [LT^{-} ^{2}]^{c}

M^{0}L^{0}T^{1} = KM^{a}L^{b+c}

Equating the powers gives:

a = 0

b + c = 0

2c = 1, c = -1/2

b = 1/2

so;

a = 0 , b = 1/2 , c = -1/2

Therefore:

T = KM^{0}l^{\frac{1}{2} } g^{\frac{1}{2} }

T = 2\pi \sqrt{\frac{l}{g} }

where k = 2\pi

8 0
3 years ago
At an axial load of 22 kN, a 15-mm-thick × 40-mm-wide polyimide polymer bar elongates 4.1 mm while the bar width contracts 0.15
Alenkasestr [34]

Answer:

The Poisson's Ratio of the bar is 0.247

Explanation:

The Poisson's ratio is got by using the formula

Lateral strain / longitudinal strain

Lateral strain = elongation / original width (since we are given the change in width as a result of compession)

Lateral strain = 0.15mm / 40 mm =0.00375

Please note that strain is a dimensionless quantity, hence it has no unit.

The Longitudinal strain is the ratio of the elongation to the original length in the longitudinal direction.

Longitudinal strain = 4.1 mm / 270 mm = 0.015185

Hence, the Poisson's ratio of the bar is 0.00375/0.015185 = 0.247

The Poisson's Ratio of the bar is 0.247

Please note also that this quantity also does not have a dimension

3 0
3 years ago
The results of a _________ test will determine if there is suitable drainage and the size of the drain field that will be requir
topjm [15]

Answer:

The results of a percolation test will determine if there is suitable drainage and the size of the drain field that will be required for a septic system.

7 0
2 years ago
1. A 260 ft (79.25 m) length of size 4 AWG uncoated copper wire operating at a tem-
Murljashka [212]

A 260 ft (79.25m) length of size 4 AWG uncoated copper wire operating at a temperature of 75°c has a resistance of 0.0792 ohm.

Explanation:

From the given data the area of size 4 AWG of the code is 21.2 mm², then K is the Resistivity of the material at 75°c is taken as ( 0.0214 ohm mm²/m ).

To find the resistance of 260 ft (79.25 m) of size 4 AWG,

R= K * L/ A

K = 0.0214 ohm mm²/m

L = 79.25 m

A = 21.2 mm²

R = 0.0214 * \frac{79.25}{21.2}

  = 0.0214 * 3.738

  = 0.0792 ohm.

Thus the resistance of uncoated copper wire is 0.0792 ohm

5 0
4 years ago
Gas chromatography separates compounds depending on their__________ . Benzene, m-xylene, and toluene have similar_________ , the
amm1812

Answer and Explanation:

Gas chromatography separates compounds depending on their **polarity and volatility**. Benzene, m-xylene, and toluene have similar **polarities**, therefore, the main basis for separation is **volatility**. The more volatile a component the ** higher its vapor pressure**, hence the more time it spends in the **gaseous mobile phase**, giving it a **shorter** retention time. Therefore, components of a liquid mixture will elute in order of **increasing boiling points/decreasing volatilities/increasing polarities with the stationary phase**.

3 0
3 years ago
Other questions:
  • The dry unit weight of a soil sample is 14.8 kN/m3.
    12·1 answer
  • Make sure that the switch is on (if the drill is electric), the chuck key is not removed before you plug in the drill or turn it
    11·2 answers
  • The flow curve for a certain metal has parameters: strain-hardening
    8·1 answer
  • An inventor claims to have developed a power cycle operating between hot and cold reservoirs at 1175 K and 295 K, respectively,
    9·1 answer
  • A polymeric extruder is turned on and immediately begins producing a product at a rate of 10 kg/min. An operator realizes 20 min
    12·1 answer
  • An insulated tank having a total volume of 0.6 m3 is divided into two compartments. Initially one compartment contains 0.4 m3 of
    8·1 answer
  • Traffic at a roundabout moves
    8·1 answer
  • What are practical considerations you might encounter when you increase the moment of inertia (I) while keeping the cross-sectio
    13·1 answer
  • ) A certain polymer is used for evacuation systems for aircraft. It is important that the polymer be resistant to the aging proc
    14·1 answer
  • ceramics must be heated in order to harden the clay and make it durable. the equipment used to heat the clay
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!