Question: Can someone explain why the answer is how the answer is 3.0, I tried it in the calculator but it says 5 and I know
Can someone explain why the answer is how the answer is 3.0, I tried it in the calculator but it says 5 and I know there is a double in front but what difference does it make.
PART I: Assuming that the following declarations and initializations have been made, intintdoublebooleanbooleanString[]j=3;k=5;x=1.0;b1=true;b2=false;s={"abe","def","ghijk","hij"}; write a Java literal whose value is equal to the value of each of the following expressions next to the expression in the space provided: (double)(1/j+2/j+3/j+4/j+5/j)3.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
