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 distillation column is initially designed to separate a mixture of toluene and xylene at around ambient temperature (say, 100°
weeeeeb [17]

Answer:

Purchase cost= 87056

Bar module cost= 292725

Explanation:

solution is attached below

6 0
4 years ago
How is TEL (total equivalent length) measured and calculated? .​
ollegr [7]
Measure the longest circuit and add 50% for fittings and terminal units.
3 0
3 years ago
A sample of sand weighs 490 g in stock and 475 in Oven Dry (OD) condition, respectively. If absorption capability of the sand is
Ivahew [28]

The weight of the specimen in SSD condition is 373.3 cc

<u>Explanation</u>:

a) Apparent specific gravity = \frac{A}{A-C}

Where,

A = mass of oven dried test sample in air = 1034 g

B = saturated surface test sample in air = 1048.9 g

C = apparent mass of saturated test sample in water = 975.6 g

apparent specific gravity = \frac{A}{A-C}

                                         = \frac{1034}{1034-675 \cdot 6}

Apparent specific gravity = 2.88

b) Bulk specific gravity G_{B}^{O D}=\frac{A}{B-C}

G_{B}^{O D}=\frac{1034}{1048.9-675 \cdot 6}

       =  2.76

c) Bulk specific gravity (SSD):

G_{B}^{S S D}=\frac{B}{B-C}

=\frac{1048 \cdot 9}{1048 \cdot 9-675 \cdot 6}

G_{B}^{S S D} = 2.80

d) Absorption% :

=\frac{B-A}{A} \times 100 \%

=\frac{1048 \cdot 9-1034}{1034} \times 100

Absorption = 1.44 %

e) Bulk Volume :

v_{b}=\frac{\text { weight of dispaced water }}{P \omega t}

=\frac{1048 \cdot 9-675 \cdot 6}{1}

= 373.3 cc

5 0
3 years ago
Write two scnr.nextInt statements to get input values into birthMonth and birthYear. Then write a statement to output the month,
aalyn [17]

Answer:

import java.util.Scanner;

public class InputExample {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       int birthMonth;

       int birthYear;

       birthMonth = scnr.nextInt();

       birthYear = scnr.nextInt();

       System.out.println(birthMonth+"/"+birthYear);

   }

}

3 0
3 years ago
Consider a multiprocessor system and a multithreaded program written using the many-to-many threading model. Let the number of u
Montano1993 [528]

Answer:

At the point when the quantity of bit strings is not exactly the quantity of processors, at that point a portion of the processors would stay inert since the scheduler maps just part strings to processors and not client level strings to processors. At the point when the quantity of part strings is actually equivalent to the quantity of processors, at that point it is conceivable that the entirety of the processors may be used all the while. Be that as it may, when a part string obstructs inside the portion (because of a page flaw or while summoning framework calls), the comparing processor would stay inert. When there are more portion strings than processors, a blocked piece string could be swapped out for another bit string that is prepared to execute, in this way expanding the use of the multiprocessor system.When the quantity of part strings is not exactly the quantity of processors, at that point a portion of the processors would stay inert since the scheduler maps just bit strings to processors and not client level strings to processors. At the point when the quantity of bit strings is actually equivalent to the quantity of processors, at that point it is conceivable that the entirety of the processors may be used at the same time. Be that as it may, when a part string hinders inside the piece (because of a page flaw or while summoning framework calls), the relating processor would stay inert. When there are more portion strings than processors, a blocked piece string could be swapped out for another bit string that is prepared to execute, along these lines expanding the usage of the multiprocessor framework.

4 0
3 years ago
Other questions:
  • A 3-kg block rests on top of a 2-kg block supported by, but not attached to, a spring of constant 40 N/m. The upper block is sud
    14·2 answers
  • A small truck is to be driven down a 4% grade at 70 mi/h. The coefficient of road adhesion is 0.95, and it is known that the bra
    7·1 answer
  • Complex poles cmd zeros. Sketch the asymptotes of the Bode plot magnitude and phase for each of the listed open-loop mmsfer fuoc
    10·1 answer
  • Q1. In electronic circuits it is not unusual to encounter currents in the microampere range. Assume a 35 μA current, due to the
    13·1 answer
  • A waste treatment pond is 50m long and 25m wide, and has an average depth of 2m.The density of the waste is 75.3 lbm/ft3. Calcul
    12·1 answer
  • "It is better to be a human being dissatisfied than a pig satisfied; better to be Socrates dissatisfied than a fool satisfied. A
    7·1 answer
  • potential difference is the work done in moving a unit positive charge from one point to another in an electric field. State Tru
    12·1 answer
  • Digital leaders are people who __ others down a particular path.
    13·2 answers
  • You must yield the right-of-way to all of the following EXCEPT:
    8·1 answer
  • An unknown relative passes away and bequeaths upon you a small tract of land in Amherst. You decide to build a two-story storage
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!