Where am I going wrong on this Javabat problem 4?

From ggc

Jump to: navigation, search
http://www.javabat.com/prob?id=Logic.answerCell
public boolean answerCell(boolean isMorning, boolean isMom, boolean isAsleep) {
 
  if(isMorning==true && isMom==true)
  {
  return true;
  }
  else if(isAsleep==true)
  {
  return false;
  }
  else if(isMorning==true && isMom==false)
  {
  return false;
  }
  else if(isAsleep==true && isMom==true && isMorning==true)
  {
  return false;
  }
  return true;
}
I get one wrong return , the problem says all values = true will return false . i set it like that and it dosent turn on so I don't know what to do.


This question was already posted: http://ggc.javawide.org/index.php/Where_am_I_going_wrong_on_this_Javabat_problem_2%3F





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter