id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

Warmup-1 > parrotTrouble
prev  |  next  |  chance

We have a loud talking parrot. The "hour" parameter is the current hour time in the range 0..23. We are in trouble if the parrot is talking and the hour is before 7 or after 20. Return true if we are in trouble.

parrotTrouble(true, 6) → true
parrotTrouble(true, 7) → false
parrotTrouble(false, 6) → false

...Save, Compile, Run         

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  Warmup-1

Forget It! -- delete my code for this problem 115.0

Copyright Nick Parlante 2006-09 - privacy