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

Consider the following partial program that assigns the value of the alert variable based on the value of the score variable: int score; String alert; if ( score > 15 ) { if ( score < 45) { alert = "yellow" ; } else { alert = "orange" ; } } else { alert = "red" " } State for what values of the variable score, the variable alert will have the value “yellow” after the end of the if statements.

OpenStudy (anonymous):

int score; String alert; if ( score > 15 ) { if ( score < 45) { alert = "yellow" ; } else { alert = "orange" ; } } else { alert = "red"; } Take a look at the place where alert is set to "yellow". What conditions need to be met to be there?

OpenStudy (anonymous):

Values 1 through 14 would be considered yellow?

OpenStudy (anonymous):

Here are the ranges for each of the colours. A) All values (including negative values) less than or equal to 14 B) All values greater than or equal to 45 C) All values from 15 to 44 Which of them do you think is yellow, and what part of the code makes you think that?

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!