mr4912910 mr4912910
  • 26-12-2021
  • Computers and Technology
contestada

Write an if/else statement that assigns 1 to the variable fever if the variable temperature is greater than 98.6; otherwise it assigns 0 to fever.

Respuesta :

6385726215
6385726215 6385726215
  • 28-12-2021

Answer:

temperature = int(float(input("Enter temperature: ")))

fever = 0

if temperature > 98.6:

   fever +=1

else:

   fever = 0

print(fever)

Explanation:

Answer Link

Otras preguntas

Let tk(x) be the degree k taylor polynomial of the function f(x)=sin(x) at a=0. suppose you approximate f(x) by tk(x). if |x|≤1, how many terms are needed (that
The single most important measure to prevent the spread of staphylococci in a food service operation is to teach and monitor proper:
What process can account for a normal xy male producing a sperm carrying two y chromosomes?
If a person has anti a and anti b in their plasma what is their blood type
Can someone please help me ASAP!
A neuron that transmits an impulse to the central nervous system after the neuron is stimulated by the environment is called a(n) __________.
someone please help me if efgh is a parallelogram what is the value of x
On Tuesday, a local hamburger shop sold a combined total of 480 hamburgers and cheeseburgers. The number of cheeseburgers sold was three times the number of h
How does romeo or juliet fit aristotle's description of the tragic hero?
find the equation of the line containing: (-5,0) and parallel to 2y+6x=3