Computers and Technology, 14.12.2021 22:00, skatingflower
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
}
Answers: 1
Computers and Technology, 22.06.2019 06:50, phillipfruge3
Match the personality traits with their description
Answers: 1
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
Advanced Placement (AP), 09.11.2020 21:50 miahbaby2003p2af1b
In a certain game, the integer variab...
Mathematics, 05.10.2019 08:00
Mathematics, 05.10.2019 08:00
Mathematics, 05.10.2019 08:00
Mathematics, 05.10.2019 08:00
Mathematics, 05.10.2019 08:00
Mathematics, 05.10.2019 08:00