// Describe the program

// Any imports
import java.io.*;
import java.util.*;

// class specification
public class StudentPollApplication {
  public static void main(String[] args) {

    // Initialize
    int responses[] = { 1, 2, 6, 4, 8, 5, 9, 7, 8, 10,
                           1, 6, 3, 8, 6, 10, 3, 8, 2, 7,
                           6, 5, 7, 6, 8, 6, 7, 5, 6, 6,
                           5, 6, 7, 5, 6, 4, 8, 6, 8, 10 };
    int frequency[];

    frequency = new int[ 11 ];


    // Output instructions to the user

    // Prompt for data (Show ME the Data!)

    // While it's not the end of data
     // Process the data
     // Output some results
     // Prompt for more data

    // Preform the wrap-up processing
    for ( int answer = 0; answer < responses.length; answer++ )
             ++frequency[ responses[ answer ] ];

    // Output any final results
    String output;

    output =         "Rating\t\tFrequency";
    for ( int rating = 1; rating < frequency.length; rating++ )
    {
      output +=    "\n" + rating + "\t\t" + frequency[rating];
    }

    output += "\n\n";

    System.out.println(output);

  } // end main
} // end class