I would love if anybody could please help me with coding the math part of Min Max and Avg. I am having a difficult time trying to call to my variables to get the correct answer.
here is my code so far...
Also, I cannot get my loop to stop for my avg. it says infinity. lol
Change the values when you initialize your min and max values.
Integer.MAX_VALUE and MIN_VALUE are built-in Java constants. They are the largest and smallest values that can be represented in integer form. So by setting the Max to Integer.MIN_VALUE, any number you enter is automatically going to re-assign the Max variable. Same goes with the Min variable.
Joined: Jun 13, 2012
Ah you are a saint I would have never of thought of that...then again i'm pretty new at all this lol Thanks again