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

 

jebbert@volusia.k12.fl.us > quiz2020_12_02_APP1SLHL_comfortLevel
prev  |  next  |  chance

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)

public String quiz2020_12_02_APP1SLHL_comfortLevel(int temp) { }

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

Copyright Nick Parlante 2017 - privacy