Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (anonymous):

Hi, can someone help me with this question? Consider the following partial program that assigns the value of the weather variable based on the value of the temp variable: int temp; String weather; // temp is intitilized to something here if ( temp >= 55 ) { if ( temp < 75) { weather = “mild” } else { weather = “warm” } } else { weather = “cold” } State for what range of

OpenStudy (rsmith6559):

55 - 74 is mild >74 is warm <56 is cold

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!