assignment for class NEED assistance ASAP

here is my problem:
Write a class that finds the average of an array of 5 test scores. Those scores are 98,73, 65, 41, and 89. The class should have varaibles needed to hold the array and the average. The class should also have one constructor and one function that finds the average.

i have been staring at this code for too long and i need someone to help show me what isnt right about my code

here is what i have so far:
# include <iostream>
# include <iomanip>

using namespace std;

class testScores
{
private:


public:
const int NUM_scores = 5;
double scores[NUM_scores] = {98, 73, 65, 41, 89};
int total = 0;

//sums the test scores:
for (int count = 0; count < scores; count++)
total += scores[count];

//averages the test scores:
double total = 0
double average;

for (int count = 0; count < scores; count++)
total += scores[count]
average = total / scores;
};

int main()
{
cout << "This program will average the test scores already stored in an array. \n";

cout << "The average of the test scores in the array is: " << average << ".";

cin.get();
cin.ignore();
return 0;
}
In order to get an indea of what classes are you should read this: http://www.cplusplus.com/doc/tutorial/classes/
Topic archived. No new replies allowed.