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...
Type: Posts; User: KiwiFlan
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...
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...
The problem I'm having is converting from an array to a double.
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...
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...
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):
...
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!
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
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...