Write an interactive C++ program that prompts the user for ten (10) real numbers and calculate the sum, average, and prints the result. Hint: you may use an array to store the data.
Program requirements:
- The program must contain a class in which all the required private and public identifiers and the following functions must be defined.
- The program must contain three or more functions using parameters. These functions should read the data, calculate the sum, find the average, and print the results.
I'm really not that good, this is what I have so far! But I know this is not what my teacher wants, I have no knowledge yet of private...
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int score1 = 0;
int score2 = 0;
int score3 = 0;
int main()
{
cout << "Enter the first score: ";
cin >> score1;
cout << "\nEnter the second score: ";
cin >> score2;
cout << "\nEnter the third score: ";
cin >> score3;
cout << "\nThe average of the 3 scores is " << (score1 + score2 + score3) / 3 << endl;
system("PAUSE");
return 0;