about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy