Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

http://codepad.org/NsebmCbT My code is in the url for easier look at it... My re

ID: 441665 • Letter: H

Question

http://codepad.org/NsebmCbT My code is in the url for easier look at it... My real question is how to use three of my methods down below. My teacher gave us the format of using the methods. I already incorporated the first method "fToC" into my loops and have gotten the right formatting and answer. I just need to finish out the other three methods. I think my problem is somewhere along the lines of either using the array wrong when I type it or something with the second part of the method. For example" double max (double[] arr, int num)" is what he gave us to use and I am not quite sure what goes into "num" or double. Showing me how to use just one of the methods would even be extremely helpful! Thanks.

Explanation / Answer

Im sorry the link isnt opening. But I can surely tell you how to use the methods.

double max (double[] arr, int num)

When calling the above method call it as:

int z=3;

double x;

double[] y={1254,154,58.6};

x= max( y, z );

What is happening here is that the method max returns a double value. Hence we take the value into x, which is a double variable.

The arguments that are passed in max are a double array(double[] arr) and an integer(num).

So, while calling the function just pass a double array and an integer value.

Good Luck!