CSci 151                     Assignment 7: Arrays                   Spring 2015


Problem Definition
   Design a grade calculation program to process numeric scores earned by a set
   of as many as twenty-five students on a graded activity, then compare each 
   score to the class average to determine a normative grade.  Use your leo 
   email name as the source file name(e.g. gPolya.cpp). Attach your solution
   to an email sent to tom.brown at the domain tamuc.edu. The "subject" line
   is to contain the course(151), your leoMail name, and assignment number 7.
   This solution is due on or before Friday 1 May.
   
Input
   Prompt and input the number of scores to process, then input the set of 
   score values. Each score is to be stored as an element in an array named 
   score. Increment a score counter for each value input. Allow no more than
   25 scores.

Process
   After the input of all scores, call a coded function to compute and return a
   score average by summing the element values in score[] then dividing the sum
   by the value of the score counter. Call another function to find the median.
   if there is an odd number of scores, the median is the middle score; else it
   is the average of the middle two scores.
   
Output
   Print a descriptive title line followed by headings above columns for student
   serial numbers(based on index values 0, 1, ...), score[] values, and assigned
   grades. When printing the column details, determine individual grades by 
   comparing each score[] value to the class average then assigning the grade 
   'E' (for excellent), 'S' (for satisfactory), or 'U' (for unsatisfactory) 
   according to the following rules:
   a. If a score is greater than the class average plus 10, assign an 'E'; or
   b. If a score is in the range of 10 points above or below the average, 
      assign the grade 'S'; or
   c. If the score less than the class average minus 10, assign the grade 'U'. 

   
   Example output:

            Score Report        
            
      student#  Score  Grade*
         0       100     E
         ...
         11       88     S
         ...      
         24       53     U
         
      average = 80 median = 86
   
Design and Style Constraints
1. Insert a comment at the top of your source program with your name, the course
   code, the lab number and a brief program description.
2. Make meaningful identifier names, apply conventional case usage, initialize
   variables during declaration, and have named constants for the grade category
   values. Indent and align statements for readability and to show hierarchy.
3. Create and invoke functions to compute the score average, the median score,
   and another to determine and output letter grades. 

Example score data:
  100 100 97 95 93 93 91 90 89 89 88 87 86  82 81 74 72 72 66 64 62 61 59 56 53