Exercise using struct example

This is the third programming milestone

  1. Take the example and adapt it to read in a series of records typed in at the keyboard and print each record to the screen in turn. After it has read each record it should prompt the user whether to continue, asking then to type a 'y' to continue or a 'n' to stop there. When accepting input for a record, the program should prompt for the input required for each line or field.

  2. Consider the frequency counting example again. Now you should enhance it by using a struct to store information. This should include the mean, standard deviation and the array of frequencies. The program should now report on this information at the end of the series, prompting them to type 'm' for just the mean, 's' for both the mean and standard deviation or 'a' for mean, standard deviation and histogram.

    Some hints on how to tackle these problems.


    Back to the struct example note.