Search:

Type: Posts; User: KiwiFlan

Search: Search took 0.11 seconds.

by KiwiFlan
Replies
1
Views
1,818

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. Thread: Conversions of Numbers in Arrays

by KiwiFlan
Replies
6
Views
720

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. Thread: Conversions of Numbers in Arrays

by KiwiFlan
Replies
6
Views
720

Re: Conversions of Numbers in Arrays

The problem I'm having is converting from an array to a double.
4. Thread: Conversions of Numbers in Arrays

by KiwiFlan
Replies
6
Views
720

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. Thread: Aligning Issues in the Output

by KiwiFlan
Replies
5
Views
787

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. Thread: Aligning Issues in the Output

by KiwiFlan
Replies
5
Views
787

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):
...

by KiwiFlan
Replies
2
Views
3,155

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!

by KiwiFlan
Replies
1
Views
325

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