Kotlinlearncs.online LogoJava
Return to List

Solve: Answer Cell

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Your cell phone rings. Return true if you should answer it. Normally you answer, except in the morning you only answer if it is your mom calling. In all cases, if you are asleep, you do not answer.

fun answerCell(
isMorning: Boolean,
isMom: Boolean,
isAsleep: Boolean,
): Boolean {
return false // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: