# Search:

Type: Posts; User: KiwiFlan

1. ## Thread: Finding the Average

by KiwiFlan
Replies
1
Views
2,170

### 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
1,109

### 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
1,109

### 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
1,109

### 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
970

### 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
970

### 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. ## Thread: Monte Carlo Method

by KiwiFlan
Replies
2
Views
3,754

### 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
430

### 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. ## Thread: Monte Carlo Method

by KiwiFlan
Replies
2
Views
3,754

### 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