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

help me asap please!!.... :3
What is the x-intercept of the graph of the function f(x) = x2 − 16x + 64?
Grammatically correct or incorrect : Ellos necesitan visitar a sus tíos.
how long does it take to drink a glass of water if you are drinking 1/4 of a cup per second?
What do administrative support careers do? Name three tasks. Will mark brainliest for best answer need it quickly!!!
How many neutrons does an atom of nitrogen contain
The express the expression 6×10 to the -7÷3×10 to the -3rd is equivalent to what?
PLEASE HELP!!! After getting 5 new rocks, George gave half of his rock collection to Susan. If George gave Susan 36 rocks, which equation could be used to dete
Francisco invested $5,000 into an account that earns 3% compounded quarterly. How many times will Francisco earn interest after keeping the money in the account
Maria and three friends have 1200 soccer cards. If they share the soccer cards equally, how many will each person receive?