Search:

Type: Posts; User: n00bprogrammer

Search: Search took 0.06 seconds.

  1. Replies
    14
    Views
    1,893

    Re: Simple error can't figure out.

    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...
  2. Replies
    14
    Views
    1,893

    Re: Simple error can't figure out.

    Sure.

    class Standard_Deviation
    {
    static int size; //static variables.
    static double mean = 0;
    static double sums = 0;
    static double subtracted = 0;
    static double...
  3. Replies
    14
    Views
    1,893

    Re: Simple error can't figure out.

    Wow sqroot = Math.sqrt(getDivide()); just did it. Thanks you guys are awesome.
  4. Replies
    14
    Views
    1,893

    Re: Simple error can't figure out.

    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...
  5. Replies
    14
    Views
    1,893

    Re: Simple error can't figure out.

    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...
  6. Replies
    14
    Views
    1,893

    Re: Simple error can't figure out.

    sqroot = (int) Math.sqrt(divided); got it. Thanks bro :-bd
  7. Replies
    14
    Views
    1,893

    Simple error can't figure out.

    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...
Results 1 to 7 of 7