Hi,
I have to create a simple program that takes an unknown amount of grades and averages them using Scanner. The program is supposed to allow any amount of grades as long as the numbers fall between 0 and 100. I know what I have isn't even close to finished, and that I'm supposed to use a for loop but I provided it to give insight into what I need. I can write the method easily enough, my biggest problem is just making scanner accept multiple values . If I could do that, I could finish it.
int h; do{ Scanner kb = new Scanner(System.in); System.out.println("Enter grades to average: "); h = kb.nextInt(); } while (h>0);
Thank you,
Troop