subject

In a certain game, the integer variable bonus is assigned a value based on the value of the integer variable score. • If score is greater than 100, bonus is assigned a value that is 10 times score.

• If score is between 50 and 100 inclusive, bonus is assigned the value of score.

• If score is less than 50, bonus is assigned a value of 0.

Which of the following code segments assigns bonus correctly for all possible integer values of

score ?

Select two answers.
A
IF(score > 100)
{
bonus score * 10
}
ELSE
{
IF(score ≥ 50)
{
bonus score
}
ELSE
{
bonus 0
}
}

B
IF(score ≥ 50)
{
IF(score > 100)
{
bonus score * 10
}
ELSE
{
bonus 0
}
}
ELSE
{
bonus score
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
In a certain game, the integer variable bonus is assigned a value based on the value of the integer...
Questions
question
Social Studies, 01.12.2020 18:00
question
Health, 01.12.2020 18:00
question
Mathematics, 01.12.2020 18:00
question
Mathematics, 01.12.2020 18:00
question
Law, 01.12.2020 18:00
Questions on the website: 13722363