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

What is the percentage of 13/18?
A code is formed using four of these letters: A, B, I, K, N, O, and T. (Note that the order of the letters in the code matters; for example, ABIK is a different
Jermaine’s brother, jalen, sells wooden flower boxes. his profit is represented by the functionp(x) = 105x – 335, where p(x) represents the profit made after x
What is Na2SO4? an acid a base a salt an ion
Which of the following are methods used to select state judges? Select all that apply(4 points) a)chosen by governors b)chosen by legislatures c)chosen by the
Explain why you can use subtraction to solve a division problem
Freshwater biomes have _______.a. organisms adjusted to high salinity b. more diversity than marine biomes c. a salinity of less than 1% d. the ability to maint
What does the sun supply to a leaf? starch water light energy gas
When a warm air mass and a cold air mass meet, but they push at each other and neither one can move, it is called a/an
When salts are dissolved in water, they _____.