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

A mobile phone company offers two monthly calling plans, A and B. Under A, every minute costs $ 0.10. Under B, the first 100 minutes costs $ 12 and every extra
Round up 47125 to the nearest tens, hundreds, thousands, ten thousands
What is the right way to write fifty cents ? Is it $.50 or .50
Solving linear equations is not for me :b i need to know p - 15 = 13 - 6p
what is the best estimate for the product of 289 and 7
To replace a number with another number that tells how many or joe much
a square photo display board is made up of 60 rows of 60 photos each the area of each square photo is 4 square inches how long is each side of the display board
Square root 2 is between 1.4 and 1.5
Name one reason why Sevilla, Spain is famous
What do you need to conduct an experiment