// P. 213 //Q1: 1, 2, 3, ..., 99 int count; for(count=1; count<=99; count++) System.out.println(count); //Q2: total = 1+ 2+ 3 ... + 99 int total = 0; int count; for(count=1; count<=99; count++) total += count; //Q3: output the average 1 - 99? int total = 0; int count; for(count=1; count<=99; count++) total += count; double average = (double) total / 99; System.out.println("Average = " + average); //Q4: P. 219 A. No ; following while statement B. int n; for(n=1; n<=10; n++) sum += n*n; System.out.println(n); //Q5: Team Lab Exercise, P.225 // // Read the number of students from keyboad, // then read each student score, output the class average