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
Environmental __________ are practices that prevent harm to ecosystems. A) contigency plans B) laws C) managements D) protection
anzhelika [568]

Answer:

A

Explanation:

environmental contingency plan

procedures to implement in case of unexpected events requiring rapid living practice changes

5 0
2 years ago
My question got deleted? oh no!!
aleksley [76]
OH NOOOOOOOOOOOOOOOOOOOO
6 0
2 years ago
Read 2 more answers
The effect of the passage’s overall structure is to
Delvig [45]

Answer:

an context, Ignatius’ observations contrasting his own clothing with that of the people around him (paragraph 1) most clearly serve to emphasize…-In reading this question, I was confused on the thoughts of Ignatius and thought that overtime beliefs about clothing changed, when really his opinions never changed, and really his values were just unconventional. I have to know that in the first paragraph, the narrator is describing Ignatius’ clothing choices and what his beliefs are.

Explanation:

4 0
2 years ago
Professor Menendez conducted an experiment to investigate the effects of a new medication for treating the symptoms of obsessive
scZoUnD [109]

Random assignment will be useful in he research by Professor Menendez to ensure that each participant has equal chance.

<h3>What is a random assignment?</h3>

A random assignment simply means the use of chance procedure to ensure that everyone has an equal chance of being selected.

Placebo condition is any treatment which has no active properties. It's when people experience a benefit after the administration of an inactive treatment.

Learn more about research on:

brainly.com/question/968894

#SPJ1

4 0
2 years ago
Explain the relationship
Dovator [93]

Answer:

Areas with high population density in the daytime tend to have more public service facilities. The higher the day-time population density, the more likely public service facilities are to aggregate

Explanation:

pls mark brainliist

7 0
1 year ago
Other questions:
  • You should be prepared for a train to appear at a railroad crossing __________.
    13·2 answers
  • Prompt
    7·1 answer
  • AP Microeconomics, Topic: Changes In Factor Demand and Factor Supply
    7·1 answer
  • How does the coriolis effect influence precipitation around the world ?
    14·1 answer
  • Which of the following graphs reflects this scenario: following the hurricane, the standardized test scores for all students who
    5·2 answers
  • Niagara Falls is 51 meters high. If you dropped a ball off the ledge, how much time would it take it to hit the water?
    15·2 answers
  • Read the following excerpt carefully before choosing your answer.
    5·1 answer
  • PLEASE HELP!!! Drag each phrase to the correct column to indicate whether it is a benefit or challenge of creating urban green s
    5·1 answer
  • Describe the properties that makes cheat grass an invasive species.
    10·1 answer
  • Select the correct answer. If you take an assessment that measures your behavioral characteristics in certain situations, which
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!