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
Finances: What goals will you set for yourself in the future like a bucket list.
Serggg [28]
1. Get a well paid job
2. Lose virginity
3. Travel
4. I kinda wanna try threesome with the boys
5. Probably die in peace
3 0
3 years ago
What are the factors that black body radiation depends on?
Leokris [45]
• temperature
• warm-up-time
• cooling time
• regulation stability
6 0
4 years ago
The purpose of behavioral therapy, from the client's perspective, is to
fgiga [73]

Answer:

Change an unwanted behavior.

Explanation:

3 0
3 years ago
As a river flows downhill carrying sediment, what happens when the river widens and slows down?
kondor19780726 [428]

Answer: A

Explanation:

3 0
3 years ago
Which of the following processes describes how missionary activities change the geographies of universalizing religions outside
olga nikolaevna [1]

The correct answer to this open question is the following.

You forgot to include the options for this question. However, we can answer this.

The process that describes how missionary activities changed the geographies of universalizing religions outside of their founding hearths was Expansion Diffusion.

This is the process that happens when a major nation introduces and expands its culture, tradition, customs, or religious beliefs into other nations. It could be through conquering and colonizing as was the case of the Spanish crown which sent its religious congregations such as the Franciscans to evangelize the Native Indians into the Catholic religion.

3 0
3 years ago
Other questions:
  • How is P.E. calculated? mass × velocitymass × distanceweight × heightmass × height
    5·1 answer
  • Name four ways humans alter the water cycle and how the change impacts the water cycle
    15·1 answer
  • When you are in danger, which part of the nervous system is responsible for your heart rate increasing?
    13·1 answer
  • Which therapy would be least focused on emotions?A) behavioral therapyB) humanistic therapyC) Gestalt therapyD) psychodynamic th
    7·1 answer
  • Supply and price have what type of relationship?
    7·1 answer
  • Ưu đểm và thuận lợi của phương pháp giáo dục trẻ mầm non············
    11·1 answer
  • PLEASE HELP<br> May someone please help me how to solve this with explanation?
    15·1 answer
  • how damaging do you think this sort of negative campaign was at this time? (jeffferson v adams) apush guided reading
    9·1 answer
  • the admission fee at a small fair is $1.50 for children and $4.00 for adults. on a certain day, 2200 people enter the fair and $
    8·1 answer
  • I'm freaking bored ​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!