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

-5x + y = -1 10x – 2y = 2
Can you pls help I’m this one
f(x) = x3 – 3x2 - x + 3 what is the domain and range?
what two things do you need to sit in a book ​
Last week Sally had thirty-nine dollars. She washed cars over the weekend and now has sixty-four dollars.
Most members of the “Five Civilized Tribes” did not want to leave their homes. They resisted the U.S. government’s efforts to drive them out of the Southeast. B
omar has four times as many apples as bananas. He has 30 pieces of fruit in all. If a represents the number of apples and b represents the number of bananas , h
how do i find thhe greatest common factor?
PLEASE HELP ME! THANK YOU IF YOU DO! ​
HELP PLS 100 POINTS TAKING TEST RN WHEN you look at the speedometer in a moving car, you can see the car's. A.instantaneous speed. B.average speed. C.instantane