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

Luis knows that his pool holds 3,050 gallons and that his water pump will pump the water out at a rate of 9 gallons per minute. How long will it take Luis to ha
Can an object be increasing in speed as it's acceleration decreases?
Need help with number 4
Choose the correct indefinite article for this word: leccion A. unos B. una C. unas D. un
What is the value of x in the equation x-2/3 + 1/6 =5/6 ?
Please help me !!! ( the directions are at the top of the picture ) Answer what you can correctly for a brainliest and also get a thanks ! Don't answer if you d
What is an entrepreneur? A. A sole proprietorship B. A corporation C. One who opens a business D. A bank that loans money
write the sum of the numbers as the product of their GCF and another sum. 56+64 =
Find the ratio in simplest form. 30 minutes to 2 hours
What question can help u determine whether silver underwent is a chemical change or physical change