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

 

isBeautifulDay


Write a method called isBeautifulDay that takes a temperature (integer) and boolean that indicates whether it is sunny. This method should return true when the temperature is above 68 and sunny is true. However if the temperature is above 90 then it should return false. All other cases should return false.


isBeautifulDay(69, true) → true
isBeautifulDay(74, true) → true
isBeautifulDay(92, true) → false

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

public boolean isBeautifulDay(int temp, boolean sunny){ }

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

Copyright Nick Parlante 2017 - privacy