subject

What will be the value of bonus after the following code is executed?

int bonus, sales = 6000;
if (sales < 5000);
bonus = 200;
else if (sales < 7500);
bonus = 500;
else if (sales < 1);
bonus = 750;
else if (sales < 2);
bonus = 1000;
else;
bonus = 1250;

a. 200
b. 500
c. 750
d. 1000

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 18:30, emmaishere69
List 3 items that were on kens resume that should have been excluded
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, maryanapritchak1829
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
image
Computers and Technology, 23.06.2019 23:00, GreenHerbz206
Computer programming is one type of what career
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, babysisjessica1
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
You know the right answer?
What will be the value of bonus after the following code is executed?

int bonus, sales...

Questions in other subjects:

Konu
History, 19.07.2021 16:40