Top Posters
Since Sunday
e
4
h
4
h
4
m
3
d
3
B
3
o
3
w
3
H
3
a
3
c
3
k
3
New Topic  
Oughto Oughto
wrote...
Posts: 742
Rep: 1 0
7 years ago
What would be the value of bonus after the following statements are executed?

int bonus, sales = 1250;
if (sales > 1000)
   bonus = 100;
if (sales > 750)
   bonus = 50;
if (sales > 500)
   bonus = 25;
else
   bonus = 0;

A) 25
B) 500
C) 0
D) 100
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 141 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

Oughto Author
wrote...
7 years ago
I mentioned in my previous post that I chose this as an elective, thanks for helping me understand
wrote...
7 years ago
I'm happy to help
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1352 People Browsing
Related Images
  
 327
  
 416
  
 405
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 484