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

Why was Jefferson’s election in 1800 considered a “republican revolution”? He taught the public to respect its leaders. He was a Democratic Republican. He rever
What fractions are equivalent to 2/3
what is the greatest composite odd numbers less than 40
how might Tybalts death have been avoided
what is the greatest composite odd numbers less than 40
tienes un Gato o un perro
President Thomas Jefferson approved the Louisiana Purchase in 1803. He and other Democratic-Republicans had doubts about the decision, however, because a.the pu
The volume of a cylindrical watering can is 100cm^3.If the raduis is doubled,then how much water can the new can hold?
one way in which immigrants changed american life is by.... A:Studying American laws B:Learning English C:Refusing to speak there native Languages D:Bringing t
.7n-1.5+7.3n=14.5 what is the answer to this quetion