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

 

jebbert@volusia.k12.fl.us > funnyHatWearing
prev  |  next  |  chance

People are not wearing enough hats! The parameter 'quant' tells the quantity of hats people are wearing. Return 'true' if people are wearing 10 or more hats. However, if the parameter 'tooMuch' is true, it means that people should not be wearing more than 20 hats. In that case, only return 'true' if people are wearing between 10 and 20 hats inclusive.


funnyHatWearing(14, true) → true
funnyHatWearing(14, false) → true
funnyHatWearing(23, false) → true

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

public boolean funnyHatWearing(int quant, boolean tooMuch) { }

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

Copyright Nick Parlante 2017 - privacy