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...
Type: Posts; User: n00bprogrammer
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...
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...
Sure.
class Standard_Deviation
{
static int size; //static variables.
static double mean = 0;
static double sums = 0;
static double subtracted = 0;
static double...
Wow sqroot = Math.sqrt(getDivide()); just did it. Thanks you guys are awesome.
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...
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...
sqroot = (int) Math.sqrt(divided); got it. Thanks bro :-bd
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...
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...
ergh.. Can't believe I didn't catch that.
Thanks
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...
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...
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...