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

the temperature of a pot of water fell from 72°F to 36°F in 4 minutes. find the average temperature per minute
What causes a rockslide the quick movement of rocks down a slope ? Science
What is the answer? x<-5 or x> -5? -1/5x-4>-3
how do I write 0.632 in two different forms
what would result if chromosomes did not replicate during interphase
How much does the element Radon cost per pound
an interview with the french ambassaador about diplomacy in france would be considered a ?
What does a rain forest smell like
How do you put 11.85 as a fraction
One math student, John, can solve these 6 math problems in 20 minutes while another student, Juaquine, can solve them at a rate of I problem per 4 minutes. Who