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

How did reconstruction affect daily life in South Carolina.
Which best reflects the central message of “The Second Coming”?
Which sentence is written correctly? A. The comic book shop is the more wonderful of the many places nearby. B. The comic book shop is the most wonderful of the
What brought powhatan confederacy to an end?
What is meant by theme of place?
Find the slope of y=4
Coach Kent brings 3 quarts of sports dink to soccer practice. He gives the same amount of the drink to each of his 16 players. How many ounces of the drink does
If 455-mL of 6.0 m HNO3 is used to make a 2.5 L dilution what is the molarity of the dilution?
What are two conductive materials separated by an insulator,and used to store electric potential energy?
Which sentence is written correctly? A. The comic book shop is the more wonderful of the many places nearby. B. The comic book shop is the most wonderful of the