1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nikolay [14]
3 years ago
13

In a certain game, the integer variable bonus is assigned a value based on the value of the integer variable score.

Advanced Placement (AP)
2 answers:
Bingel [31]3 years ago
5 0

Answer:

See Explanation

Explanation:

The options are not properly presented; hence, they can't be used to answer this question

First, we need to analyze the conditions:

  • score > 100 implies bonus = 2 * score
  • score between 50 and 100 implies bonus = score
  • score < 50 implies bonus = 0

Writing the above as programming instructions, we have:

if(score > 100){//This represents the first condition

bonus = 2 * score;

}

else if(score >=50 && score<=100){//This represents the second

bonus = score;

}

else{//This represents the last condition

bonus = 0;

}

<em>Note that, we assume that all variables have been declared</em>

<em>The comments (//) were used for explanation purpose</em>

marishachu [46]3 years ago
4 0

Answer:

A and D

Explanation:

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 se, 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

Answer : A and D

You might be interested in
Shelly works as a caseworker at a community healthcare clinic. She loves her job and prides herself on her dedicated service to
11Alexandr11 [23.1K]
Social structure is the stable pattern of social relationships that exist within a particular group or society. It provides a framework within which we interact with others. It is an orderly, Fixed arrangement of parts that together make up <span>the whole group or society.</span>
5 0
3 years ago
Communication satellites receive signals from a transmitting station on Earth, amplify them, and beam the signals down to anothe
Klio2033 [76]
Find it your self


I’m joking I don’t know
8 0
3 years ago
PANUTO: alamin ang mahalagang pangungusap gamit ang morse code. Isulat ang lasagutan sa patlang
Sauron [17]

Answer:

the answer for you to know the status report playback issue me with Ananya hot to me I am not sure if it helps you

4 0
3 years ago
Best gets brainliest!
Savatey [412]

Answer:

The trees rustled as the wind whistled gently through the leaves- The noises are considered imagery.

Her mouth watered and her tongue burned as she bit into the spicy sandwich.- Considered taste imagery because it is describing what the girl is doing.

The golden rays of the setting sun reflected upon the clear waters of the lake. - Visual imagery

My toes went numb and a shiver ran up my spine as I stepped into the cold water.

The stench of rotting garbage overpowered me when I opened the bin.

Hope these are correct :)

5 0
2 years ago
Read 2 more answers
Technology is changing the way we communicate. Today we communicate through email, social networking sites, and text messaging.
tester [92]

Answer:firstly....you don't know the persons reactions to what you are conversing....and some body languages are cut short cause u are not together.u can't shake that your friend why talking to him...some good English are lost cause u not conversing in person so you free to text what you wish......first we shouldn't use short form of words all the time....cause it affects our brain and we might even be tempted to write like this during exams

Explanation:

5 0
3 years ago
Other questions:
  • Describe mammary gland ​
    10·1 answer
  • 134 miles to to inches dimensional analysis
    6·2 answers
  • In which pair of events did the first event most directly influence the second?
    8·1 answer
  • What term describes the measurement of the force of gravity on an object
    12·1 answer
  • Pls help w this (ap human geography)
    11·1 answer
  • What was most novel about city life? How are cities different today?
    10·1 answer
  • (a) An angle measures 129º. What is the measure of its supplement?
    15·1 answer
  • Panuto: Gamitin sa pangungusap ang sumusunod na mga pares ng pandiwa at
    5·1 answer
  • Please don't leave me i cant live without u for second so please don't leave me
    6·1 answer
  • Bored——————————————-who——————————want to —————————————- talk
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!