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
ANTONII [103]
4 years ago
13

Write an if/else statement that assigns true to the variable fever if the variable temperature is greater than 98.6; otherwise i

t assigns false to fever.
Computers and Technology
1 answer:
olganol [36]4 years ago
3 0

Answer:

If(temperature>98.6) // checking the condition  

{

fever=true // assigned the true value in the fever variable

}

else

{

fever=false // assigned the false value in the fever variable

}

Explanation:

Following is the description of statement  

  • In the given problem we used if/else statement block.The if block is when there condition is true otherwise it executed the else block.
  • In the above answer, we check the condition of "temperature" variable in the if block .
  • If the condition of " temperature" variable is greater than 98.6 then it assigns the  true value in the "fever" variable otherwise control goes to else block and executed the statement inside the else block i.e  assigned the false value in the "fever" variable.
You might be interested in
Question # 2 Multiple Choice Which finger presses the H key on the keyboard? index finger on the right hand index finger on the
Lera25 [3.4K]
Index finger right hand!
Hope this helps! :)
8 0
3 years ago
A video streaming website uses 32 bit integers to count the number of times each video is played. In anticipation of some videos
Over [174]

Answer:

c) 2^32 times as many values can be represented.

Explanation:

It's funny, this problem comes from a real-life situation, except it wasn't really foreseen :-)  And we will encounter a similar problem in less than 20 years.

The difference in terms of storage capacity from 32-bit integers and 64-bits integers is huge.

A 32-bit integer can store (signed) numbers up to 2,147,483,647. (so over 2 BILLIONS)

A 64-bit integer can store (signed) numbers up to 9,223,372,036,854,775,807 (9 BILLIONS of BILLONS)

5 0
3 years ago
Read 2 more answers
How many answers are needed to message someone on Brainly? <br>(random question)​
katrin [286]

1,000 answers to message people

5 0
3 years ago
Can you run microsoft office on a chromebook
zimovet [89]
Yes, you can Microsoft office in a Chromebook.
6 0
4 years ago
Which term refers to the science that specifies the design and arrangement of items you use so you interact with the items effic
sashaice [31]

Answer:

the ergonomics To prevent a laptop from being stolen, you can use a surge protector. False; To prevent laptops from being stolen, you can use a cable lock. What is a digital certificate?

6 0
2 years ago
Other questions:
  • What is the Web of Trust?
    12·1 answer
  • Peter was working on a design for a magazine. He had to give his design to his team for further editing. He wanted to use a file
    8·1 answer
  • Electronic business includes which of the following
    5·2 answers
  • Jane is creating a slide that will have a large heading and number of bullet points below it. What slide format should she use?
    12·1 answer
  • What does the CFO of a company do
    14·1 answer
  • What is the description of ?
    13·1 answer
  • Is it possible to construct a wait-free n-thread PeekableStack(2) object from an arbitrary number of atomic Stack objects and at
    11·1 answer
  • If a machine cycle is 2 nanoseconds , how many machine cycles occur each second?
    7·1 answer
  • Define data, information and the relation between the two?
    8·1 answer
  • Which transform function would you use to operate the filename values into two separate columns, one for the filename and the ot
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!