foodalexandre4418 foodalexandre4418
  • 04-03-2020
  • Mathematics
contestada

Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise.

Respuesta :

Аноним Аноним
  • 04-03-2020

Answer:

So if the parameter 's value  is 7 or 803 or 141 the function returns true . But if the parameter 's value  is -22 or -57, or 0, the function returns false .

My Code:

bool is Positive ( int x ) {  

if ( x > 0 )  

{  

 return true;  

}  

else {  

 return false ;  

}  

}

Answer Link

Otras preguntas

add together one and three quarters and two and a quarter and three
what 3 prime numbers times together to make 231
what is the greatest composite odd numbers less than 40
How did the Hanseatic League punish those who did not follow their strict trade rules?
Which statements describing aspects of Russia's culture and history are true? Choose all answers that are correct. A. Russia is the second largest country in th
Which statement is one component of the cell theory? A)All living and nonliving things consist of one or more cells. B)Cells and living organisms are spontaneou
What fractions are equivalent to 2/3
Which could be the measures of the three angles of an acute triangle. A. 40, 90, 50 B. 45, 45, 90 C. 25, 25, 130 D. 70, 80, 30
The tree of life is made up of which domains? Eubacteria , Archaea, and Eukarya Bacteria , Archaea, and Eukaryota Bacteria , Archaea, and Eukarya
what signs of greatness did lincoln exhibit in his life?????