Code://This still has 2 errors, asking for return values from //calcaverage and from findlowest. Can anyone help me? //This program asks the user to pick the number of test //scores they wish to average, drops the lowest(returning //'lowestscore'and showing it) and then it calculates the //average minus the lowestscore). Could someone please //take a look and let me know how to fix it. THANKS !!! /* You don't necessarily need to pass anything back to main. It is probably better to calculate the lowest value first and then call the function calculate average. So no values are returned to main */ #include <iostream> //functions //The inside of the brackets tells you //how many variables are being passed and //if they are integers floats or arrays. //Don't forget the ';' int calcaverage(float [],int,float); int findlowest(float [],int ); using namespace std; int main() { float Scores[81]; int HowMany; cout<<"How many scores do you wish to input?"; cin>>HowMany; cout<<"Enter your "<<HowMany<<" scores.\n"; for (int i=0; i<HowMany; i++) { cin>>Scores[i]; } //Calls the function 'findlowest' passing the array //'Scores' into it and the variable 'howmany' //When calling functions you don't need to declare //if they are integers or if they are arrays or their size //Don't forget the ';' at the end of the bracket findlowest(Scores,HowMany); int stop; cin>>stop; return 0; } //This function finds the lowest score and returns it. //Here you must declare what type they are //For an array such as Scores you need to write float Scores[] //The square brackets are needed/ //Note here you don't need the ';' at the end of the bracket int findlowest(float Scores[],int HowMany) { float lowest=10000; for(int a=0; a<HowMany; a++) { if(Scores[a]<lowest) { lowest=Scores[a]; } } cout<<"Your lowest score was "<<lowest<<endl; //call function 'calaverage' passing the array //'Scores'into it, 'howmany' and 'lowest' calcaverage(Scores,HowMany,lowest); //note it passes int three variables to 'calcaverage' //Therefore the function declaration should //have three variables as shown below } int calcaverage(float Scores[],int HowMany,float lowest) { float average; float total=0; for (int a=0; a<HowMany; a++) { if (Scores[a]!= lowest)//ignore the lowest score { total=total+Scores[a]; } } average=total/(HowMany-1);//-1 to ignore the lowest score //therefore the array has shrunk by one. cout<<"The average was "<<average<<endl; }