Top Posters
Since Sunday
5
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
New Topic  
Eels Eels
wrote...
Posts: 716
Rep: 0 0
7 years ago
What will be the value of bonus after the following code is executed?

int bonus, sales = 10000;
if (sales < 5000)
   bonus = 200;
else if (sales < 7500)
   bonus = 500;
else if (sales < 10000)
   bonus = 750;
else if (sales < 20000)
   bonus = 1000;
else
   bonus = 1250;

A) 1250
B) 500
C) 200
D) 750
E) 1000
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 167 times
3 Replies
Replies
Answer verified by a subject expert
ToothyToothy
wrote...
Top Poster
Posts: 744
Rep: 4 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Eels Author
wrote...
7 years ago
YOU'RE AWESOME
wrote...
7 years ago
Thanks for providing feedback
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1250 People Browsing
Related Images
  
 44
  
 4430
  
 4082
Your Opinion
Who's your favorite biologist?
Votes: 586