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

Patrick ate 3/5 of a small pizza on Friday night. For lunch on Saturday , he ate 1/2 of the leftover pizza. How much pizza did he eat for lunch on Saturday?
which number is 100 less than 61 tens?
Why does 2 pi divided by 1/3 equal 6 pi?
Patrick ate 3/5 of a small pizza on Friday night. For lunch on Saturday , he ate 1/2 of the leftover pizza. How much pizza did he eat for lunch on Saturday?
Consider the relation {(–4, 3), (–1, 0), (0, –2), (2, 1), (4, 3)}.Graph the relation.State the domain of the relation.State the range of the relation.Is
Which one of the following is smallest in size ?N3-               O2-               F-                Na
How is the ecological system organized?
Why do we use granite?
Wanda, the Channel 1 weather person, said there was a 30% chance of rain on Saturday and a 30% chance of rain on Sunday. Should Wanda be fired? HELP PLEASE
Why do we use granite?