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

Lauren swims 35 laps in 25 minutes how many laps will she swim in 10 minutes
what is a cumulative preferred
Circle the equation with roots 4 and -8
What Number is Divisible by 5?
what geek fest convention kicks-off today?
hich word group is a complete sentence?   A. Birds nest in the tree.   B. An old barn with a tractor inside.   C. Six inches of water in the basement
Help me solve question 2 plzzz I NEED HELP THAT IS THE ONLY QUESTION PLzzz
not everyone has stress. true false
The product of three integers is -5. Dakota said that he can use the numbers -1, 5, 1 or the numbers 1, -5, 1 or the numbers -1, -5, -1 to get the answer. Do y
What does Newton's second law of motion state