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

The novel Uncle Tom’s Cabin, which effectively the unfairness toward black people, was a major influence in the antislavery movement. (A) portrayed…strengthenin
Give 3 examples to show work being done.
What is one fact about xuchal
How did the early voyages of discovery change european trade routes?
how do I solve (3+i)(3-i)
what is 3 2/5 times 2 1/3
Why did Allies plan to land in Normandy and not somewhere else?
If y=2 when x=3. What is the value of y when x=9?
Why did Allies plan to land in Normandy and not somewhere else?
Why does 2 pi divided by 1/3 equal 6 pi?