Search:

Type: Posts; User: n00bprogrammer

Search: Search took 0.22 seconds.

  1. Replies
    1
    Views
    227

    Looking for help with assignment

    Hey guys I'm having problems with a Java assignment that I've been working on for weeks. Hopefully someone can steer me in the right direction. My assignment is to make the following changes to the...
  2. Replies
    14
    Views
    820

    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...
  3. Replies
    14
    Views
    820

    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...
  4. Replies
    14
    Views
    820

    Re: Simple error can't figure out.

    Wow sqroot = Math.sqrt(getDivide()); just did it. Thanks you guys are awesome.
  5. Replies
    14
    Views
    820

    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...
  6. Replies
    14
    Views
    820

    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...
  7. Replies
    14
    Views
    820

    Re: Simple error can't figure out.

    sqroot = (int) Math.sqrt(divided); got it. Thanks bro :-bd
  8. Replies
    14
    Views
    820

    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...
  9. Replies
    4
    Views
    1,722

    Re: Need help with 2D Array

    Sorry to be a pest but I'm having another problem that I just can't figure out.

    To get input from the user I figured I would need another for loop to get the highest temps for each 12 months and...
  10. Replies
    4
    Views
    1,722

    Re: Need help with 2D Array

    ergh.. Can't believe I didn't catch that.

    Thanks
  11. Replies
    4
    Views
    1,722

    Need help with 2D Array

    Working on a project where I have to use a 2D array to store highest and lowest temperatures for each month of the year.

    Trying to get the first bit of it to compile but I keep getting these...
  12. Replies
    3
    Views
    421

    Re: Need help with array code

    Thanks a lot for the tip and correction.. now I have to figure out how to get the output to print after I type all of the input lol

    It's a shame I've had to pay $80 for a book full of errors. My...
  13. Replies
    3
    Views
    421

    Need help with array code

    Hi I'm just beginning to learn and work with arrays and I was going to try a program that ask the user to enter 8 hourly temperatures and let the program output these temperatures.

    When I run the...
Results 1 to 13 of 13