This is a homework assignment but I am stuck and could use some help. I have written the following code and the program works as it is supposed to. My problem is the assignment I have is to write an overloaded function and I am not sure how to do that. Any ideas or suggestions would be appreciated.
One additional note, I have removed some sections of the code that were not related to my question. So what is missing here is intentional.Code:int pts, rbd, ast;
double min, yer;
cout<< "Enter points scored: \n";
cin>> pts;
cout<< "Enter time played in minutes: \n";
cin>> min;
cout<< "Enter rebounds: \n";
cin>> rbd;
cout<< "Enter assists: \n";
cin>> ast;
yer = (((pts / min) + (rbd / min) + (ast / min)) / 3) * 10;
cout<< "Player Efficiency Rating is:" << yer << endl;