Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Question Assume that you have the following variables declared: int a = 3, b = 10, c = 7; double w = 12.9, y = 3.2; What do the following expressions evaluate to in Java? a) a / b b) (double) b / a c) a – b / c d) w / (int) y e) y / w f) b % c / a g) b % a

Question

Assume that you have the following variables declared:int a = 3, b = 10, c = 7; double w = 12.9, y = 3.2;

What do the following expressions evaluate to in Java?

a) a / b

b) (double) b / a

c) a – b / c

d) w / (int) y

e) y / w

f) b % c / a

g) b % a

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"