Question: In java (for java intro) Continue your program and add the following code int i,j,k; double x,y,z; 1-12; x-12; j 5; y#5; Print a statement
Continue your program and add the following code int i,j,k; double x,y,z; 1-12; x-12; j 5; y#5; Print a statement that shows what the operation is and the result. Do not use an assignment statement, do the computation in the System.out.println as shown below System.out.println("itj= "4 (itj)); b) Xty d) x-y e) ox*y h)x/y Explain why the output for each computation above is either integer or double Now add the following assignment statements. Follow each assignment statement immediately with a printin statement that shows the assignment statement and its result. For example System.out.println("kit+k); Explain the result of each. One of these four statements will not work as shown. Explain why and how you would use casting to make it work correctly a)k-i/j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
