If the value passed into the parameter x in the following method is 28. What is the value returned by this method? public static int method2(int x) { int code = x%3; switch (code) { case 2: return 50;...


If the value passed into the parameter x in the following method is 28. What is the value returned by this method?




public static int method2(int x)


   {



       int code = x%3;


       switch (code)


        {


            case 2:


                 return  50;


                 break;



             case 1:


                 return  75;


                 break;



             case 0:


                return 100:


        }


  }



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here