/* Grades.java computes letter grades using the "curve" method.
 *
 * Begun by: Charles Hoot for Hands on Java.
 * Adapted from code by: Adams, Fall 1995, Hands on C++.
 * Completed by:
 *
 * Input(keyboard): a sequence of names and scores.
 * Output: the sequence of names with corresponding letter grades,
 *          based on the "curve" method of grading.
 ********************************************************************/
	     
import ann.easyio.*;			// Keyboard, Screen
import hoj.*;                           // Assertion

class Grades extends Object
{
  static Screen theScreen = new Screen();
  static Keyboard theKeyboard = new Keyboard();
  
  public static void main(String args[])
  {

//	define nameArr as an array of String objects
//	define scoreArr as an array of double objects

//	int scores = fillArrays( nameArr, scoreArr);

	//convert the array into one that just contains valid scores
//	scoreArr = DoubleArrayOps.subArray(scoreArr, 0, scores-1);

	theScreen.print( "\nMean score: "
//       + DoubleArrayOps.average(scoreArr)
         + "\n"
         + "Std. Dev: "
//       + DoubleArrayOps.standardDev(scoreArr)
         +"\n");

//	define gradeArr as an array of character objects

//	gradeArr = computeLetterGrades(scoreArr);

//	displayArrays( nameArr, scoreArr, gradeArr);
  }

/************************************************************
 * fillArrays fills nameArr and scoreArr from keyboard.     *
 *                                                          *
 * Receive: nameArr, an array of strings,                   *
 *          scoreArr, an array of doubles.                  *
 * Input: a sequence of names and scores,                   *
 * Return: the number of scores read                        *
 * Passback: the sequence of names in nameArr,              *
 *           the sequence of scores in scoreArr.            *
 ************************************************************/

// define fillArrays() here

/****************************************************** 
 * Compute letter grades, using "curve" grading.      *
 * Receive: scores, a list of scores.                 *
 * Return: a list of the corresponding letter grades. *
 ******************************************************/

// define computeLetterGrades() here

/*******************************************************
 * displayArrays displays the various arrays.          *
 *                                                     *
 * Receive: names, an array of strings,                *
 *          scores, an array of doubles, and           *
 *          grades, an array of chars.                 *
 * Output: a sequence of names, scores and grades.     *
 *******************************************************/

// define displayArrays() here

}

