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
After Abraham lincoln became president , southern states the united states in order to:
Morgarella [4.7K]
A I think because there was still slavery in the south while he was president
6 0
3 years ago
Read 2 more answers
How they calculate the years?
Maru [420]

Answer: A monk called Dionysius Exiguous calculated his own present year to be A.D. 525. Counting from that year reaches the current year. A.D. is now used to label the number of years in the Gregorian calendar, the most widely used calendar in the world and the unofficial global standard. You add one year every January 1.

Explanation:

5 0
2 years ago
True or False: Social media marketing should focus on overtly selling products.
lianna [129]
I think yes because I just think yes
8 0
3 years ago
Read 2 more answers
How do i find the dependent and the independent variable inthe question above?
Lostsunrise [7]
The independent is the type of textbook given and the dependent is the exam scores
6 0
4 years ago
Read 2 more answers
Which of the following studies is from an evolutionary perspective?
Dahasolnce [82]

Answer:

A study to see if people who had a more congruent view of their real self and their ideal self were happier.

Explanation:

Evolutionary studies or perspectives of the personality and the individual differences are explained at the human traits and human characteristics at a specific level. Darwin has been proposed this concept the evolutionary perspective. The natural based selection studies conduct under evolutionary perspective.

In the evolutionary studies there are three process such as :

The adaptation

By product of the adaptation

The random variation.

3 0
3 years ago
Other questions:
  • What was one major effect of the american victory in the revolutionary war?
    11·2 answers
  • − Income increases − Price of complementary products decreases These changes would MOST LIKELY have which impact on the market?
    13·2 answers
  • The Lion's Share by what is the theme
    13·1 answer
  • Which activity can strengthen a diverse family?
    13·2 answers
  • ASAP: Which statement names characteristics of a mineral?
    7·2 answers
  • Free points :) hope everyone’s having a good day &lt;3
    13·2 answers
  • 7m 3m 4m 5m find the surface area
    14·1 answer
  • Sociologist Émile Durkheim studied how societies maintain stability. He focused on the way each segment of society does its part
    8·1 answer
  • In line 1, the writer uses the phrase “melancholy object” primarily to…
    5·1 answer
  • PHYCOLOGY QUESTIONNNNNN- WILL GET BRIANLIEST!!!! URGENT!!!!
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!