id/email
password
forgot password
create account
 
Or use Mozilla Persona:

Nick's post on Why Persona is Great
about | help | code help+videos | done | prefs
CodingBat code practice

Java > Logic-1 > squirrelPlay
prev  |  next  |  chance

The squirrels in Palo Alto spend most of the day 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 play and false otherwise.

squirrelPlay(70, false) → true
squirrelPlay(95, false) → false
squirrelPlay(95, true) → true

...Save, Compile, Run


Show output only (no red/green)

prev  |  next  |  chance   |  CodingBat  >  Logic-1

Forget It! -- delete my code for this problem

Progress graphs, just for fun:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Code Help and Videos

Misc Code Practice

109.0

Copyright Nick Parlante 2006-11 - privacy