Write a C++ program that will calculate an average of class test scores and a frequency distribution. Input to the program will consist of integer scores stored in a data file called, DATA602.DAT. Output will consist of the input scores (ten per line), the total number of scores that were input, the total of all scores input, and the class average (two decimal places on this item please). The program will also output the number of scores in each of the following ranges:
90-100
80-89
70-79
60-69
below 60
Your program should also produce an output file named, REPORT602.DAT, which includes all of the above output
i am having trouble with the average and the frequency distribution parts but will except help anywhere