answer.
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]
2 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]2 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]2 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
Another official wants to harvest timber in a more sustainable way. The official wants to assess individual trees and remove onl
Elodia [21]

Selective cutting would best meet these two goals.

<u>Explanation:</u>

Selective cutting can be the best logging technique to harvest the timber more sustainably. This method is less damaging as compared to the clear-cutting method. This technique is costly as compared to the clear-cutting technique.

It enables the cutting of a few economically valuable trees. The other trees which are not economically valuable need not to cut. It causes less loss to the environment and protects nature. Conservation of the environment is the focus of this technique.

8 0
2 years ago
Maddie's nominal income was $33,000 in 2012. In 2013, because of her excellent work ethic, she received a raise that increased h
Trava [24]

Answer:

-6.7 %; Hurt  

Explanation:

1. Calculate Maddie's inflation adjusted income

\text{Inflation adjusted income} = \text{2012 income} \times \dfrac{\text{2013 CPI}}{\text{2012 CPI}}\\\\= 33 000 \times \dfrac{125}{110} = \$37 500

Maddie should be earning $37 500 in 2013 just to keep up with inflation.

2. Calculate the percent change in Maddie's real income.

Maddie is "real" salary is only $35 000.

\text{\% Change} = \dfrac{\text{real - expected}}{\text{expected}} \times 100 \, \%\\\\= \dfrac{35 000 - 37 500 }{37 500} \times \, 100 \% = \dfrac{-2500}{37 500} \times 100 \, \% = \mathbf{-6.7 \, \%}

The percent change in Maddie's real income is -6.7 %.

Maddie was certainly hurt by this inflation.

5 0
2 years ago
Explain why scientists record explosions at the New Mexico facility? (FORENSICS)
muminat

Answer:

oh my lord it wasnt a lie alright im tired of you saying that

Explanation:

8 0
2 years ago
Read 2 more answers
Compare the benefits of natural change to ecosystems to the disadvantages.
Ronch [10]
Natural changes to the ecosystem refer to environmental phenomenon that occur naturally. Natural changes include floods, volcanic activity, hurricanes, droughts, and earthquakes. They can be destructive, but they also have advantages.
The benefit of the flood is for example providing nutrients to the soil that were lacking. Also t<span>here may be relocation of fishes and organisms living in water bodies, which improves the ecosystem.
Volcano threatens t</span>he people and animals in the area are threatened, but is has also some advantages, for example:<span>the soil becomes rich due to the nutrients from the volcano. 
</span>Hurricanes result in the destruction to infrastructure and loss of lives, vegetation, and livestock. The advantage is that it lowers the temperature and t<span>he wind will cause the topsoil to be distributed to areas in which it was lacking.</span>
6 0
2 years ago
Read 2 more answers
One way americans express opinions through the media is by ?
ZanzabumX [31]
Hello~

A way that Americans express opinions through media is by:
Public Opinion Polls.

Most of the time it is to express thoughts on economic or social problems.

Hope it helps :)
4 0
2 years ago
Read 2 more answers
Other questions:
  • What are the three biological and social factors that can predispose a person to violent behavior? 
    10·1 answer
  • Miller Company operates 16 hours a day, 280 days a year. Employees work two 8 hour shifts. In an average month, 40 employees wor
    15·1 answer
  • According to studies conducted on the Big Five, which of the following statements is true?
    14·2 answers
  • Your ability to invest depends on your _____ financial strength. Group of answer choices existing past expected future
    14·1 answer
  • The fraction of the global human population living in developed nations is currently 17 percent. If each person in the developed
    7·1 answer
  • The weight Lucy lost with respect to number of weeks was recorded for six weeks. The correlation coefficient was calculated to b
    10·1 answer
  • Kristi has been training as a ballet dancer since she was very young. When Kristi’s car is hit by another motorist, she is diagn
    6·1 answer
  • Document 1
    15·1 answer
  • It is acceptable to hold cold peel-and-eat shrimp in storage at a temperature of
    8·1 answer
  • 1. The passage is most likely excerpted from which of the following?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!