CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

what do I change?

  • keep in mind that we have to count from one to ten to determine how many students were processed.
  • some variable must be used to represent the number of students already processed.
  • this must be incremented after each loop iteration.
  • the cummulative grade total has to be updated.

 

for example, use an integer variable: which

  • to keep track of which student is being processed.
  • increment this variable after each iteration.

 

int which;
which++;