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

Here is a list of numbers: 47, 22, 22, 13, 77, 8, 18 ,100 ,70 ,4 Calculate the range.
How many solutions does the equation 8x-4=10 have ? PLEASE HELP QUICK
Can someone pls explain the Schlieffen Plan to me It’s for a major grade
3. What does Clover see which terrifies her?
what is -15=2-x? plz helps
HELPPPPPPPPPPPPOOOooooooo
The depth of water at the end of a pier varies with the tides. The low tides occur on a particular day at 2:00 a.m. and 2:00 p.m. with a depth of 1.1 m. The hig
Find the quotient: 8,441 ÷ 21 = ________. a. 400 r 12 b. 400 r 20 c. 401 r 12 d. 400 r 20
Write the formula to calculate how much dough is prepared in x hours. 10 kilograms of prepared dough in 5 hours
Please answer CORRECTLY !!!!!! WILL MARK BRAINLIEST !!!