Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. Get immediate and reliable solutions to your questions from a knowledgeable community of professionals on our platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

Assuming that the declarations below were made before each part,
find the value of result for each expression below. If the expression is not legal in Java, say so. Pay attention to the difference between int and double. Make sure the assignment statement is legal. Show your work in the box to obtain partial credit. Decimals should be shown to three digits.


int dog = 21;
double canine = 3.7;
int cat = 19;
double feline = 5.6;



a. double result = dog + cat * canine;
b. double result = dog / (int) canine;
c. int result = cat / canine * feline;
d. double result = dog + cat + feline / canine;
e. double result = cat * feline / dog * canine;