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

one way that animals adapt to seasonal change
What is a sound wave?
A rectangle has an area of 30 square units and a perimeter of 34 meters.what are the dimensions of this rectangle
Why did the Chinese peasants rebel against the manchus from 1850 to 1864?
What events began and ended athens' golden age??
Which of the following nutrient cycles has its largest reservoir in the atmosphere? A) Carbon cycle B) Nitrogen cycle C) Potassium cycle D) Phosphorus cycle E)
which accurately describes a tangent
Which of the following writers did not come from Ireland? a) W. B. Yeats b) James Joyce c) Seamus Heaney d) Oscar Wilde e) none of the above; all came from
why did the framers give the power to congress rather than to the states?
past perfect tense: the storm STOP by early afternoon.