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
A non-inductive load takes a current of 15A at 125V. An inductor is then connected in series in order that the same current shal
Norma-Jean [14]

Answer:

The inductance of the inductor is 0.051H

Explanation:

From Ohm's law;

  V = IR .................. 1

The inductor has its internal resistance referred to as the inductive reactance, X_{L}, which is the resistance to the flow of current through the inductor.

From equation 1;

V = IX_{L}

X_{L} = \frac{V}{I} ................ 2

Given that; V = 240V, f = 50Hz, \pi = \frac{22}{7}, I = 15A, so that;

From equation 2,

X_{L}= \frac{240}{15}

    = 16Ω

To determine the inductance of the inductor,

X_{L} = 2\pifL

L = \frac{X_{L} }{2 \pi f}

  = \frac{16}{2*\frac{22}{7}*50 }

 = 0.05091

The inductance of the inductor is 0.051H.

4 0
4 years ago
If p = .8 and n = 50, then we can conclude that the sampling distribution of pˆ p ^ is approximately a normal distribution.
defon

Answer:

It is true that the sampling distribution of the proportions is approximately a normal distribution.

Explanation:

Solution

Given that:

N = 50

P= 0.8

Thus

p ^ =√p(1-p)/n

p ^=√0.8 (1-0.8)/50

p ^= 0.0566

Therefore,we conclude that the sampling distribution of the proportions is approximately a normal distribution.

4 0
3 years ago
You need to own your own printer in order to join the 3D printing movement <br><br> True or False
Nata [24]

Answer:

False

Explanation:

7 0
4 years ago
The pattern in a simple____ truss is a zigzag
liberstina [14]

Answer:

Bridge

Explanation:

A common, simply bridge truss is the zigzag.

6 0
3 years ago
How to comment other people
Mekhanik [1.2K]
What you mean?? .!.!.!.!!.
4 0
3 years ago
Read 2 more answers
Other questions:
  • A hole of diameter D = 0.25 m is drilled through the center of a solid block of square cross section with w = 1 m on a side. The
    15·1 answer
  • Verizon LTE
    12·1 answer
  • The volume of a cylinder is to be determined from measurements of the diameter and length. If the length and diameter are measur
    11·1 answer
  • Put these expressions in a small program that will demonstrate whether they are true or false. Paste the code, and output from t
    10·1 answer
  • Why is communication one of the most important aspects of an engineer’s job?
    7·2 answers
  • You were recently hired by the Andrews CEO as a consultant to evaluate the performance of the Chief Financial Officer (CFO). As
    13·1 answer
  • . In the U.S. fuel efficiency of cars is specified in miles per gallon (mpg). In Europe it is often expressed in liters per 100
    8·1 answer
  • How do you solve this. I dont know how so I need steps if you dont mind
    13·1 answer
  • The Boeing 787 Dreamliner is billed to be 20% more fuel efficient than the comparable Boeing 767 and will fly at Mach 0.85. The
    6·1 answer
  • How meny people live in new york
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!