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

when we got up it __ (rain). supply the correct from the verb​
Amina mixed the following substances in two different glasses P and Q of the same size. P - 1 tablespoon of powdered sugar + 1 glass of water Q - 1 tablespoon
Unit overview definition
How much gravity does it require to stop time
Which function represents the graph of f(x) = -3|x| after it is translated 5 units down? - g(x) = -3|x| +5 - g(x)=-3x - 5| - g(x) = -3|x + 5| - g(x)=-3x - 5
Find P(Z > 3.89) Pls I need help
metal element and non metallic element ​
In a Lesson before dying What changes have occurred in Paul? How did the changes affect him?
London bought 5 bottles of water a day for 18 days. On the 19th day, London bought 8 bottles of water. Write an expression that matches the sentence above.
Find the value of x. 6 X X + 1 9