The goal of the following method is to calculate and return the average of four integers given as parameters. What is wrong in this method? public static void average(int a, int b, int c, int d) {...

What is the solution of this problem?The goal of the following method<br>is to calculate and return the<br>average of four integers given as<br>parameters. What is wrong in this<br>method?<br>public static void average(int a, int b, int c, int d) {<br>return (a + b + c + d) / 4.0;<br>The method name should start with a<br>capital letter.<br>A method cannot accept 4 paramters of<br>the same type.<br>The method does not return the<br>average of the 4 integer numbers.<br>All the above<br>None of the above<br>

Extracted text: The goal of the following method is to calculate and return the average of four integers given as parameters. What is wrong in this method? public static void average(int a, int b, int c, int d) { return (a + b + c + d) / 4.0; The method name should start with a capital letter. A method cannot accept 4 paramters of the same type. The method does not return the average of the 4 integer numbers. All the above None of the above

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here