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: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 04:31
Solve this system of equations using the elimination method?
Answers: 1
question
Advanced Placement (AP), 23.06.2019 23:30
Assume that the banner needs to be 18 feet long instead of 15 feet
Answers: 1
question
Advanced Placement (AP), 24.06.2019 07:30
Which of these statements properly demonstrates the angle addition postulate for the m∠afc m∠afc ? a. m∠afc=m∠afb+m∠bfd m∠afc=m∠afb+m∠bfd b. m∠afc=m∠afb+m∠bfc m∠afc=m∠afb+m∠bfc c. m∠afc=m∠cfd+m∠dfe m∠afc=m∠cfd+m∠dfe d. m∠afc=m∠afb+m∠dfc+m∠cfb m∠afc=m∠afb+m∠dfc+m∠cfb
Answers: 2
question
Advanced Placement (AP), 25.06.2019 06:30
You are only allowed to use tutors that your school recommends. t / f
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
Mathematics, 30.11.2020 01:00
Questions on the website: 13722360