Search:

Type: Posts; User: KiwiFlan

Search: Search took 0.25 seconds.

  1. Replies
    1
    Views
    1,825

    Finding the Average

    I'm trying to find the average of "pressure" in the code. However, "pressure" is an array. My main question is: how would I find the average of the numbers in an array?
    In the code, there area that...
  2. Replies
    6
    Views
    730

    Re: Conversions of Numbers in Arrays

    The conversion problem is solved. :) However, I'm having a new problem. This is my code below. For some reason, I'm getting this error:

    "java.lang.ArrayIndexOutOfBoundsException: 59
    at...
  3. Replies
    6
    Views
    730

    Re: Conversions of Numbers in Arrays

    The problem I'm having is converting from an array to a double.
  4. Replies
    6
    Views
    730

    Conversions of Numbers in Arrays

    For one of my programs, I have to convert the wind speed from knots to mph. The variable, knots, is a double. The other variable, wind, is a double [], otherwise an array. How would I convert what's...
  5. Replies
    5
    Views
    788

    Re: Aligning Issues in the Output

    I tried both methods, but this is what ends up happening:

    http://i103.photobucket.com/albums/m129/shani_dog/0604ChallProgram.jpg

    The year column is displayed on one side and the hurricane name...
  6. Replies
    5
    Views
    788

    Aligning Issues in the Output

    Hi.

    I'm having trouble aligning my information. The output leaves the columns below each other and not next to each other. Here's my code (sorry, not sure how to put code tags around it):
    ...
  7. Replies
    2
    Views
    3,183

    Re: Monte Carlo Method

    They are supposed to be printed in any order, preferably random.

    I tried debugging my program, and I saw what the problem was. With a new arrangement, I was able to figure it out. Thanks!
  8. Thread: Hey everyone

    by KiwiFlan
    Replies
    1
    Views
    329

    Hey everyone

    Hey.
    I joined this forum for the same reason many people probably did, to have some help with my programs. :)
    You'll probably see me around a lot from now on. :D
  9. Replies
    2
    Views
    3,183

    Monte Carlo Method

    I have to write a program using the Monte Carlo Method to estimate the average number of bottles of Boost someone would have to drink to win a prize.

    So far, I have prompted the user for the...
Results 1 to 9 of 9