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

unlike carbohydrates and fats, protein contain the element?
D/12 = 0.25 bbhhgshdhrjrhfbbdb
What is a symbol used to separate the ones place from the tens place in decimal numbers
Most of the people killed by Nazi Germany during the Holocaust were
What is 35/6 as a mixed number
What does the debate between Madison and Jefferson tell us about the importance of compromise?
Why are fixed resistors’ values indicated by color bands rather than printing the numeric value on their exterior?
Which principal part is this verb form? (have) ridden A. present B. past C. present participle D. past participle
What is the value of x? 14 - x = 21 x = ?
3y=x (tell whether x and y show direct variation