This question was created from Lab4.java https://www.coursehero.com/file/16436120/Lab4java/
These calculations are not adding up correctly. With this code entered exactly as it. it shows that the total count, number of evens and offs, and the average are not correct. For example, using values of 3, -4, 5 ,12, -7 and then 0 to stop the loop. it should give values of Max - 12 Min = -7 evens = 2 odds = 3 count = 5 avg 1.8 Instead for evens, odds, count and avg it gives Evens = 2 Odds = 2 Count = 2 Avg = 2.5 I am trying to figure out exactly what I am doing wrong...
Sample output: 3 -4 5 12 -7 0 Max is... View the full answer