MrBradshaw6758 MrBradshaw6758
  • 11-11-2017
  • Computers and Technology
contestada

Write the definition of a function issenior, that receives an integer parameter and returns true if the parameter 's value is greater or equal to 65, and false otherwise.

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 12-11-2017
private boolean issenior( int age )
{
  return( ( age >= 65 ) ? true : false; )
  // I enjoy the ternary operator!
}
Answer Link

Otras preguntas

what is an example of a number that is not real
What values of x make the equation x^2+4x−4=0 true? Simplify any radicals
x-4=10;4x+1=57i need to change the first equation into to the second equation.
Helppp plsss!!Which diagram best explains a cause and effect relationship that has shaped U.S. politics?
How does frost wedging occur
Sick and dying men mean healthy soldiers must fight because what?
The idea of limiting communism to the areas already under Soviet control is called
Please help me, thank you
The pages in a book are numbered from 1 to 256. How many times is the digit 4 printed
Story made of 350-400 words