Question: Using Java, answer the following What will be the O/P produced by the following code? int a = 2; int b = 7; Boolean go
Using Java, answer the following

What will be the O/P produced by the following code? int a = 2; int b = 7; Boolean go Ahead = true; Boolean stop = ( a >= 3 ); if (goAhead ) { a = a+l; System.out.print (Value a= + a); } else if ( stop ) System.out.print (Value a= + a); System.out.print ("At end value of a = " + a + value of b = + b ); What will be the O/P produced by the following code, if the calculated bMI value are (1) 18.5, (2) 23, (3) 29, (4) 30 ANS the O/P in the corresponding Line(#) int w, h; double bMI; String uWM = You are underweight; //underweight message String uWM2 = you should eat enough food; String nWM = You are in normal weight range; /ormal weight message String nWM2 = you may keep your life style; String oWM = You are overweight; //overweight message String oWM2 = you should cut food amount & do exercise; String tWM = You are in obesity range (too fat); //obesity message String tWM2 = you need eat less & do hard exercise; //ifthe calculated bMI = (1) 18.5, (2)23, (3)29,(4)30 if(bMI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
