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

What happened to the communist ruking class in the soviet union by the 1970s?
The Union general who secured the Shenandoah Valley for the North was _____.
Having a thick cartilaginous plate between two longitudinal bones is a characteristic of which age group? a. an old person b. a child c. a middle aged person
How to solve the problem
Simplify 2(x-3)÷4=5-8+5
Read the following claim from an essay: More should be done to protect Internet privacy. Which of the following is the most relevant piece of evidence for this
what type of transformation could be used to create a symmetric traffic sign
Use synthetic division and the Remainder Theorem to find P(a) P(x)=x^4+10x^3+8x^2+4x+10 ; a=2 2 –114 56 146
In Earth’s water cycle, evaporation takes place as solid ice and snow are converted to water vapor. True False
Which group of living things can move energy from consumers at the top of an energy pyramid back to producers at the bottom? *