about | help | code help+videos | done | prefs |
Write a method that returns a comment about the temperature. The parameter 'temp' will be the temperature in degrees Fahrenheit. If the temperature is 86 or higher return "The heat is getting to me." For temperatures between 45 and 86 (exclusive), return "It is nice out." For temperatures above 32 but less than or equal to 45 return "It's way too cold." For temperatures 32 or below return "It's freezing cold!" quiz2020_12_02_APP1SLHL_comfortLevel(17) → "It's freezing cold!" quiz2020_12_02_APP1SLHL_comfortLevel(33) → "It's way too cold." quiz2020_12_02_APP1SLHL_comfortLevel(91) → "The heat is getting to me." ...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: 235
Copyright Nick Parlante 2017 - privacy