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

 

mmiller@cacegypt.org cigol-2 > klebram
prev  |  next  |  chance

Klebram are a social creature. When there aren't enough, they feel cold and unhappy; too many make them hot and unhappy. Klebram are happy when a group is between 40 and 60, inclusive. Except at night, when it is cool, in which case there is no upper limit on the number of Klebram; more make it warmer. Return true if the group of Klebram with the given values is happy, or false otherwise.


klebram(30, false) → false
klebram(50, false) → true
klebram(70, true) → true

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

public boolean klebram(int num, boolean isNight) { }

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: 120

Copyright Nick Parlante 2017 - privacy