February 23rd, 2013, 08:27 PM
Number of A's = 7.0
That doesn't look like an int value. An int would be 7
Then a score of 78.4 or 88.5 is possible?
February 23rd, 2013, 08:34 PM
You're right, I'm stupid. They are doubles...is that a problem?
Decimal test grades are possible, but I would have to re-do my inequalities because any 89.xx, 79.xx is problematic. I'm not going to deal with that for this assignment...the assignment gave no indication that I would have to deal with decimals.
edit - I need them to be doubles for my percentages...that is why I made them doubles. With integer division I will get 0's.
February 24th, 2013, 09:14 AM
e - nm, fixed, I'm dumb. Everything's good.
Thank you very much Norm. That initializing the min and max was a HUGE help.
February 24th, 2013, 09:50 AM
Another technique when searching for min/max of data in an array is to set the min and max to the first element in the array and start the loop at the second element of the array.
February 24th, 2013, 09:59 AM
I haven't learned what an array is yet...hopefully soon.