Kotlinlearncs.online LogoJava
Return to List

Solve: Squirrel Play

Imported By: Geoffrey Challen
/ Version: 2021.6.0

The squirrels spend most of their time playing. In particular, they play if the temperature is between 60 and 90, inclusive. Unless it is summer, then the upper limit is 100 instead of 90. Given an int temperature and a boolean isSummer, return true if the squirrels are playing and false otherwise.

boolean squirrelPlay(int temperature, boolean isSummer) {
return false; // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: