Computers and Technology

Advanced Placement (AP), 09.11.2020 21:50 miahbaby2003p2af1b 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
}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:50, phillipfruge3
Match the personality traits with their description
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, lexirandall19
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
Do you know the correct answer?
Advanced Placement (AP), 09.11.2020 21:50 miahbaby2003p2af1b In a certain game, the integer variab...

Questions in other subjects:

Konu
Mathematics, 05.10.2019 08:00
Konu
Mathematics, 05.10.2019 08:00