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

"Freedom" by Langston Hughes what is the author trying to say
What other traits in humans do you think follow the characteristics of simple inherited traits?
American politics has become more divisive, more extreme, and unable to compromise. True or false
Plz help me! Thanks!
Which of the following terms describe complex characters? Select all that apply. dynamic static flat round
What is the greatest common factor of 20 and 11
4. Jan bought donuts for $6.75. Each bagel cost $0.75. How many bagels did she buy?
Brittany needed new tires for her truck. She went to the auto shop and bought 4 tires on sale for $85.95 each. The salesman told her that she saved a total of $
Molten rock flows onto the seafloor and hardens as it cools.
x = 4 X x = -6 determine if it’s parallel, perpendicular, or neither