Ask Question
27 February, 00:00

A weather app records the current temperature to the nearest degree Fahrenheit using an int variable temp. The app also uses a String variable tempAdj to store an adjective based on the value of temp which will be used in a short written summary of the current weather. How the values of tempAdj are determined?

+5
Answers (1)
  1. 27 February, 02:20
    0
    Value of temp Value of tempAdj

    80 or greater "Hot"

    From 60 to 79 inclusive "Warm"

    From 40 to 59 inclusive "Cold"

    39 or less "Very cold"

    Explanation:

    Thw value of the item will be set according to the standard reading or records in Fahrenheit.

    Hence, at 80 degree or any value greater it will be set as being Hot.

    From 60 degree to 79 degrees with the inclusion of 79 degrees as being Warm.

    From From 40 degrees to 59 degree with 59 degrees inclusive as "Cold".

    And finally anything less than 39 or less "Very cold"
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A weather app records the current temperature to the nearest degree Fahrenheit using an int variable temp. The app also uses a String ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers