I never copy and pasted anything. My instructor told me to use the for loop when I asked for her help on the very first method I wrote, then I just assumed I needed to do it for every method. As my...
Type: Posts; User: n00bprogrammer
I never copy and pasted anything. My instructor told me to use the for loop when I asked for her help on the very first method I wrote, then I just assumed I needed to do it for every method. As my...
Sure.
class Standard_Deviation
{
static int size; //static variables.
static double mean = 0;
static double sums = 0;
static double subtracted = 0;
static double...
Wow sqroot = Math.sqrt(getDivide()); just did it. Thanks you guys are awesome.
Well I removed all of the ones I thought were necessary.. On the methods with division I also tried changing the variablehere / array.length to variablehere / array[size] but it didn't make a...
Thanks a lot.. I switched everything to doubles and took the (int) off of the Math.sqrt.. everything compiled but my calculations for the sqrt are showing 0.0
EDIT: I thought it would have been...
sqroot = (int) Math.sqrt(divided); got it. Thanks bro :-bd
Trying to write a standard deviation program. Everything was going good until this 1 error started in my class and I can't figure it out.
My error is at the bottom on Line 70: possible loss of...