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

Which system of equations best represents the situation?
What number is not part of the domain of f(x) = 3/x+5 How can you tell
Ok so I need help on how to do this. I need these answers badly. I need the answers for this question and two others that's set up exactly the same which is f(x
Read the passage from Sugar Changed the World. The English public, now consuming some eighteen pounds of sugar a year, knew little about the lives of the enslav
i need the answers for 6 & 7 i will give brainlist:)!! PLEASEEEE
which conversion on the metric table need division
Kevin has 3/4 yard of string. He used 1/3 of the string for a school project. How many yards of string did he use for his project.
Define Industrial Revolution using your own words! Not a book or online definition.
Someone plz help. i want to be done with this stuff.
15 pts! Will Give Brainliest Halp! PLZ Simplify negative 8 over 2 ÷ 6 over negative 3. −4 2 –2 4