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 to find the volume of L blocks?
4x squared + 7x +2=0 use quadratic formula
What is the volume of the prism that can be constructed from this net?
Describe how changes in an ecosystem can affect organisms that live there.
A square flower garden in samantha's backyard has an area of 100 square feet. How much fencing will she need to enclose the flower garden? step by step on how
A submarine dives to a depth of 54.6 meters below the surface of the water in 4 minutes. What integer represents the constant rate the submarine travels per mi
Factor mn+5m-3n-15.
Why was Brian traveling in a bushplane?
Which number is between 0.5 and 8/9 A.25/36 B.1/3 C.22/24 D.7/24
what are the sides lengths of the rectangle perimeter 40in