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
PLS HELPPPPP
andriy [413]

Answer:

M=0.09 mol/L

Explanation:

M=mol/volume

M=0.06 mol/0.656 L(convert 656 ml to L by ÷ by 1000)

M=0.09 mol/L

3 0
3 years ago
Why is the following objection
IgorLugansk [536]

Answer:

i.d say because its says the whole universe and theres not really a option between neither and then

7 0
2 years ago
What technological innovation did Europeans have when imperializing
max2010maxim [7]
Guns,better navigation, cannons. Guns were mostly impactful
8 0
3 years ago
Which of the following is the BEST reason to prioritize goals?
irina [24]

Answer:

Your most important goal should always get most of your energy and attention.

Explanation:

Prioritization is one important aspect of any goal if one wants to achieve success. This means that one must 'list' the goals and aspirations one has so that it will be easy to deal with them.

Prioritization requires the person to list the goals so that the most important is at the top or first. This will ensure that the important goals will be focused more, with most of the energy and time given. Moreover, it will also help a person 'categorize' the aims and goals.

Thus, the correct answer is the fourth/ last option.

7 0
3 years ago
Give examples of how the media have had an effect on the publics evaluation of specific events?
Elina [12.6K]
1. .The longer the story is on the news, the more people thought it was important 
<span>2. People's opinion shifted with tone used
</span><span>Effectively communicating a message is critical to political success. the key is gaining control over the political agenda, which involves getting one's priorities presented at the top of the daily news.
I think the bolded part is a better answer....
</span>
7 0
3 years ago
Other questions:
  • Subduction occurs where the oceanic crust bends down toward the mantle at a (n)?
    7·1 answer
  • What is the first stage of perception
    10·2 answers
  • Monica is kicking a soccer ball with her brother in her front yard. When the ball rolls into the street, Monica runs into the st
    9·1 answer
  • Is there a difference between interest groups and special-interest groups?
    8·1 answer
  • Do you think that Lincoln measures to deal with disloyalty and dissent represented an abuse of power?
    9·2 answers
  • What personal touches can you add to your outlines which make creating and studying from them easier?
    12·2 answers
  • What percentage of coral reefs have scientists estimated to be completely gone?
    14·2 answers
  • Brainlyist for free :)
    10·2 answers
  • The differences in the passages above are most likely a result of which of the following
    13·1 answer
  • How are you doing? I'm here to talk if you want
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!