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
2 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]2 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
Can i join three 12 volts batteriesto give me 24 volts output​
bulgar [2K]

Answer:

YES

Explanation:

If we connect batteries in series then the output voltage is the sum of the individual voltage of each battery i.e if you connect three 12 volts batteries in series then their output voltage will be 12+12+12=36 volts, but the current rating of the batteries in series will be same of the individual battery rating in 'mah'.

But when we connect the batteries in parallel their voltage is not added  but their current rating in mah is addition of their individual rating.

So, If you want 24 volts from three 12 volts battery then you can connect two of them in series and the other one in parallel with them this will give 24 volts and the current will be addition of the two series batteries and the third which is in parallel with them. You can use this configuration if current value is not a big factor.

8 0
3 years ago
Find the remaining trigonometric functions of 0 if
garik1379 [7]

Answer:

cosΘ=−√558

tanΘ=−3√5555

cscΘ=83

secΘ=−8√5555

cotΘ=−√553

8 0
2 years ago
The Ethernet (CSMA/CD) alternates between contention intervals and successful transmissions. Assume a 100 Mbps Ethernet over 1 k
Vesnalui [34]
<h3><u>CSMA/CD Protocol: </u></h3>

Carrier sensing can transmit the data at anytime only the condition is before sending the data sense carrier if the carrier is free then send the data.

But the problem is the standing at one end of channel, we can’t send the entire carrier. Because of this 2 stations can transmit the data (use the channel) at the same time resulting in collisions.

There are no acknowledgement to detect collisions, It's stations responsibility to detect whether its data is falling into collisions or not.

<u>Example: </u>

T_{P}=1 H r, at time t = 10.00 AM, A starts, 10:59:59 AM B starts at time 11:00 AM collision starts.

12:00 AM A will see collisions

Pocket Size to detect the collision.

\begin{aligned}&T_{t} \geq 2 T_{P}\\&\frac{L}{B} \geq 2 T_{P}\\&L \geq 2 \times T_{P} \times B\end{aligned}

CSMA/CD is widely used in Ethernet.

<u>Efficiency of CSMA/CD:</u>

  • In the previous example we have seen that in worst case 2 T_{P} time require to detect a collision.
  • There could be many collisions may happen before a successful completion of transmission of a packet.

We are given number of collisions (contentions slots)=4.

\text { Propagation day }=\frac{\text {distance}}{\text {speed}}

Distance = 1km = 1000m

\begin{aligned}&\text { Speed }=2 \times 10^{8} \mathrm{m} / \mathrm{sec}\\ &T_{P}=\frac{1000}{2 \times 10^{8}}=(0.5) \times 10^{-5}=5 \times 10^{-6}\\ &T_{t}=5 \mu \mathrm{sec}\end{aligned}

7 0
3 years ago
In the engineering design and prototyping process, what is the advantage of drawings and symbols over written descriptions?
MrMuchimi

The advantages that can be associated to

drawings and symbols over written descriptions in engineering design and prototyping process are;

Communicate design ideas as well as technical information to engineers.

Symbols and drawings can be universal which means it is easy to interpret any where by professionals.

  • An engineering drawing serves as complex dimensional object and symbol use by engineer to communicate.

  • Drawings and symbols makes it easier to communicate design ideas and technical information to engineers and and how the process will go.

Therefore, drawings and symbols is universal to all engineer unlike written one.

Learn more at:

brainly.com/question/20925313?referrer=searchResults

4 0
2 years ago
8. Block A shown in the figure below weighs 2000 N. The chord attached to A passes over a
Kobotan [32]

Answer:

Read the passage. Then, answer the questions about the metaphor in boldface in the text.

Lately, I've been so overwhelmed with school and sports. There was a time when I enjoyed going to classes and going to practice every afternoon. Now, everything is piling up and wearing me down. Thankfully, I get to see you every day. You are truly the sunshine of my life. Thank you for making me laugh when I'm feeling down.

What is the context of the passage?

What is being compared in the metaphor?

What is the meaning of the metaphor?

Explanation:

4 0
2 years ago
Other questions:
  • Suppose a possibly biased die is rolled 30 times and that the face containing
    13·1 answer
  • Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B tr
    9·1 answer
  • What did the ancient Greeks use simple machines for?
    15·2 answers
  • Determine the force in members FD and DB of the frame. Also, find the horizontal and vertical components of reaction the pin at
    15·1 answer
  • Prelest! Introduction to Engineering and Technology 1 Select the correct answer. What technological invention allowed for the pr
    5·1 answer
  • Provide two programming examples in which multithreading provides better performance than a single-threaded solution. Provide on
    11·1 answer
  • Tech A says that wiring diagrams are essentially a map of all of the electrical components and their connections. Tech B says th
    7·1 answer
  • Chemical engineers determine how to transport chemicals.<br> O True<br> False
    8·2 answers
  • Integrated circuits typically are mounted on ________, which are then plugged into the system board.
    6·1 answer
  • The regulator is closed when the adjusting screw is turned in (clockwise).
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!