Question: all in java (b) Given the following Java programming code as shown in Figure Q2(b)(i). Identify and correct the errors by filling them in Table

all in java
(b) Given the following Java programming code as shown in Figure Q2(b)(i). Identify and correct the errors by filling them in Table Q2(b)(i) if there are any errors. What is the output of the program after the corrections have been made? Line Programming code No 1 Public class Q2_c { 2 public static int main string[] args) { int a = 5; double b= 4.0; double c = 6.0; 8 int m = compute(a, b, c) 9 10. System.out.println(m); System.out.printc(Math.md(-8.6)); // rounding number 13 14 15 16 17 T public static double compute (double x, int y, double z) { retum ( (x+y) y-- * 6: Figure Q2(b)(i): Programming code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
