A22.0002 - ASSIGNMENT 3


Write a program that displays grades of students in a class using bars made of stars ('*').

The user is asked for the number of students in the class, then it is asked to enter the grades on a scale of 0 to 100.

The printout will be the student's number and the bar of star on a scale of 0 to 50. At the end there has to be an axis indicating the score levels every 10 points.


Ex:

   How many students ? 4
   Please enter the score of all the students:
   64 89 99 75
    1. ********************************
    2. ********************************************
    3. *************************************************
    4. *************************************
          10   20   30   40   50   60   70   80   90  100
Notes:
  1. The scores will be entered as integers.
  2. To write the display the output only after having read all of the input, you should take advantage of the input buffer (review chapter 5.8 in your book).
  3. You should have two FOR loops:
    1. An external one that loops through all of the students.
    2. An internal one to display the stars.