Ask your own question, for FREE!
Computer Science 11 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!