menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
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.
asked
Feb 21, 2018
148k
views
1
vote
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.
Computers and Technology
high-school
MattJ
asked
by
MattJ
7.4k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
private boolean issenior( int age )
{
return( ( age >= 65 ) ? true : false; )
// I enjoy the ternary operator!
}
Jameslk
answered
Feb 27, 2018
by
Jameslk
8.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Explain why binary codes are used to represent characters, numbers and symbols :)
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org