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

Dawn has 5/6 yard of lace. she uses 4/5 of it for a dress and the rest for a jewel box. how much ove does she use for the jewel box?
When a number is divided by 13 the remainder is 11 . When the same number is divided by 17 remainder is 9. What is the number
Which of the following is true for the rational function f(x) = x-4/x^2-16?
On which body of water is Brazil? A. Pacific Ocean B. Atlantic Ocean C. Mediterranean Sea D. Caribbean Sea
multiply an odd number by an odd gives an even number. Is it certain, likely, even, unlikely or impossible.
What is one-third of 2,700?
Grace has yellowed skin, a suppressed appetite, and high blood pressure. Which drug does Grace most likely abuse? A. Alcohol B. Tobacco C. Hallucinogen
At a local clothing store you can purchase 3 t shirts for 18.00$ at that rate how much would it cost to purchase 7 t shirts
Is an aphid a producer
Why do the Zuckermans forget to take care of the farm?