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

 

orion.a.smith@gmail.com apcsa-primitives > apcsaPrimitivesIsChilly
prev  |  next  |  chance

For this problem, return true if it is raining but not windy and the temperature is below 50, or if it is windy but not raining and the temperature is below 40. If it is both raining and windy, return true if the temperature is below 60. If it is not raining and not windy, return true if the temperature is below 30. If none of the above conditions to return true are satisfied, return false.


apcsaPrimitivesIsChilly(true, false, 40) → true
apcsaPrimitivesIsChilly(false, true, 37) → true
apcsaPrimitivesIsChilly(false, false, 62) → false

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

public boolean apcsaPrimitivesIsChilly(boolean isRaining, boolean isWindy, int temperature) { }

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

Copyright Nick Parlante 2017 - privacy