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
Feliz [49]
3 years ago
9

int temp; temp = 180; if ( temp > 90 ) { System.out.println( "This porridge is too hot." ); // cool down temp = temp – ( temp

> 150 ? 100 : 20 ); } // end if else { if ( temp < 70 ) { System.out.println("This porridge is too cold."); // warm up temp = temp + (temp < 50 ? 30 : 20); } // end if } // end else if ( temp == 80 ) System.out.println( "This porridge is just right!" );

Computers and Technology
1 answer:
STALIN [3.7K]3 years ago
3 0

Answer:

The combined output will be option D which is

This porridge is too hot.

This porridge is just right!

Explanation:

As the complete question is not the given the complete question is found online and is attached herewith.

Now from the given attached code

As the temperature value is 180 which is more than 90 so the first loop is true and the first print out is

This porridge is too hot.

Now the temperature is cooled down using the formula such that the temperature reduced 100 degrees in the intervals of 20 now the temperature becomes 80. As it is greater than 70, thus the second if loop is not executed.

As the temperature is 80 this the next print out will be as

This porridge is just right!

So the combined output will be option D which is

This porridge is too hot.

This porridge is just right!

You might be interested in
A ____ is a collection of computers and users that are identified by a common security database. workgroup controller segment do
Ksenya-84 [330]
A domain is a collection of computer....
6 0
3 years ago
Google's stated mission is to: establish itself as the most valuable media company in the world. organize the world's informatio
pickupchik [31]

Answer:

Yes this is true.

Explanation:

7 0
3 years ago
A camera on a tripod shows the ground floor of a skyscraper and then moves upward to show its entire length. what camera movemen
scZoUnD [109]

Answer:

A pedestal. It involves moving the camera upwards or downwards in relation to a subject.

8 0
3 years ago
. A double is more precise than a float... true or false?
erik [133]

Answer:True

Explanation: Both double and float have the ability to provide the values in the decimal.The wideness for the float is 4 bytes and 8 bytes wideness is present for the double, which indicates that the double is more detailed than the float. The more detailed form gives more precision.The precision in the double also reduces the chances of error as compared with float.Thus the given statement is true.

6 0
4 years ago
Why can videos be streamed from the cloud to a computer with no loss in
mezya [45]
I think the answer is B
3 0
3 years ago
Read 2 more answers
Other questions:
  • Windows installer cannot install .exe files. to distribute a software package that installs with an .exe file, what must you do
    14·1 answer
  • Sensitive data is always classified true or false
    14·1 answer
  • Define E-Mail Write any 4 special features of E-Mail ​
    13·1 answer
  • What does a production proposal provide ?
    7·2 answers
  • Explain the importance of technology in at least 100 words
    11·1 answer
  • A protocol stack is _____.
    11·2 answers
  • where element is the Hypertext Markup Language (HTML) element and _____ pairs define the styles that are applied directly to tha
    6·1 answer
  • File format extension for animation are. Swf,. Swl and _____
    15·1 answer
  • A network administrator has asked robin, a network engineer, to use ospf (open shortest path first) along with rip (routing info
    11·1 answer
  • Toni is reviewing the status of his organization's defenses against a breach of their file server. He believes that a compromise
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!