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
Please help ASAP!<br>Summarize the contributions of several key “founding fathers".
Svet_ta [14]
There are six key goals stated by the Founders in the Preamble. "Form a more perfect Union, establish Justice, insure domestic Tranquility, provide for common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity."
6 0
3 years ago
Who is the presiding officer of the Senate whenever the Vice-President is not present? Speaker of the House Attorney General Sec
Mrrafil [7]

President pro tempore is your answer

The meaning of the above phrase is "temporary president", and is the acting president when the president & vice president is not available.

~`

3 0
3 years ago
Read 2 more answers
A key drawback with the use of tests to screen individuals for desirable characteristics is that
DochEvi [55]

Answer:

A key drawback with the use of tests to screen individuals for desirable characteristics is that It is a time-consuming procedure.

It is very important for the employees to know exactly what they must look into and assess the characteristics accurately. This process is very time consuming and takes up a lot of patience and resources to carry the tests.

A study that would need to occur quickly cannot indulge into this testing process because of it being very tedious and time consuming.

3 0
4 years ago
What are the differences between psychological assessment and psychological testing?
monitta

Answer:

A psychological assessment can include numerous components and in psychological tests a person's responses are evaluated according to carefully prescribed guidelines

Explanation:

7 0
3 years ago
Where is Nation wide? Please be specific tell the city state and address zip code. Thank you.
gladu [14]

Answer:

Nationwide is not a city, it's an high school located in Hollywood,FL

Explanation: Hollywood is a city in Broward County, Florida, between Fort Lauderdale and Miami

The address is 3440 Hollywood Blvd #415, Hollywood, FL 33021

The school is called Nationwide Academy High School and there is plenty other schools that help you get into Harvard University...

8 0
3 years ago
Other questions:
  • Why does the milky way look like a hazy band of stars in the sky?
    14·2 answers
  • Determine which functions have two real number zeros by calculating the discriminant, b2 – 4ac. Check all that apply. Please ans
    8·2 answers
  • Students on a college campus were recently surveyed about the upcoming presidential election. By and large, they agreed with the
    6·2 answers
  • In the third sentence of the first paragraph, the narrator’s description of Mrs. De Ropp as “those three-fifths of the world tha
    5·2 answers
  • In the group of jobs below which Does not belong ?
    5·1 answer
  • What is the position of most inhabitants of Trans-Dniestria regarding reunification of Moldova and
    10·1 answer
  • Your family has an ipod filled with music
    10·2 answers
  • In the third and fourth paragraphs ("A ship ... our
    7·1 answer
  • If I optimize my Meta Description, my CTR will also improve.
    5·1 answer
  • I'm enrolled in K12 or ALVA it's an online home school.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!