void getValues(float userVals[], const int number){
int i = 0;
for (i = 0; i < number; ++i) {
cout << "Enter 20 integer values greater then zero and less than 100 " << endl;
cin >> userVals[i];
if (userVals[i] < 0 || userVals[i] > 100 ){
cout << "You have entered an invalid number, please enter another!" << endl;
i--;
}
else
continue;
}
}
float getTotal (float userVals[], const int number){
float total;
total = 0;
int index;
for(index=0; index < number; index++){
total = total + userVals[index];
}
return total;
}
float getAverage(const int number, float total){
float average;
average = total / number;
return average;
}
void everything(float userVals[], float total ,float average){