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
Câu 19: Một đĩa mài có khối lượng 2 kg, bán kính 14 cm quay tròn đều quanh trục đối xứng đi qua
erastova [34]

Answer:

ang hirap naman anong grade po yarn

5 0
3 years ago
Who has the most mvps in the nfl
andreyandreev [35.5K]

Answer: Kyler Murray.

Explanation: ...

3 0
2 years ago
Read 2 more answers
Describe how parties have modified their policies and messaging to appeal to various demographic
prohojiy [21]

Through the means of anti-White propoganda and mass importation of non-Whites, the Democrats have been able to cater to minorities through their fantasy of destroying the White race. The sad thing is, these methods are able to fool a lot of Whites into accepting their own genocide willingly.

Likewise, the Republicans are able to pretend to cater to Whites, as many of them see the radical changes occurring in our society and their negative impact, and though these Whites do not realize that the Republicans are only one step behind and shifting more and more to the left, they safely put their trust in the Jews who run both sides to divide and conquer. When have you ever seen a Republican talk about White birth rates being below replacement level, or bragging about the accomplishments made for White people? I certainly hear about other racial accomplishments from both parties constantly. It's funny that the Republican voter base has no actual regard for traditional values and are simply trying to preserve a little snippet of what we once believed, making them like a dog trying to mate after being neutered. When absolute war and genocide is executed against the White man at it's full force, this indoctrination will go right out the window, our Glory will be remembered, and our God (YHVH)'s name will be known, even feared by our enemies.

4 0
3 years ago
Which of the following statements is true of e-waste in the United States?
miskamm [114]
B
E- Waste is basically polluting the planet
3 0
3 years ago
Can anyone who's good at Java help me with these? I'm really lost and have a week before school ends
Lemur [1.5K]
I can help but what is it that you need help with?
8 0
4 years ago
Other questions:
  • Given the equation 2xt2\y = 4w+2, what is the value of x?
    5·1 answer
  • What should be the ideal debt-equity ratio of an organization?
    15·1 answer
  • Nancy immediately remembers she had promised to return her grandmother's call from earlier this morning. What type of memory is
    8·1 answer
  • Which of the following is true of covert naturalistic studies?A.The subjects are split into two groups: a control group and an e
    6·2 answers
  • Examine the career of Martin Luther. What were the foundations of his Reformation? What legacy did he leave Europe? Why did earl
    6·1 answer
  • BEST ANSWER GETS BRAINLIEST!!!!!!
    5·2 answers
  • When you want to open a new bank account, speak to a loan officer. True False
    7·1 answer
  • What has the most legs on earth
    9·2 answers
  • __________ is a characteristic of an organism that allows it to survive better in an environment.
    5·2 answers
  • Why are most natural monopolies established
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!