id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

pais@kinetigram.com logic04 > L42_squirrelPlay
prev  |  next  |  chance

APCS Logic 4, Problem 2. 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.


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

...Save, Compile, Run (ctrl-enter)

public boolean L42_squirrelPlay(int temp, boolean isSummer) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

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

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy