Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

have a function which receives for parameters it is called ratethegroup() it rec

ID: 3641148 • Letter: H

Question

have a function which receives for parameters it is called ratethegroup() it recieves four integer values and their total so ratethegroup(int score1,int score2, int score3,int total) the function will determine the group status as follows:these values are randomly entered i have a function classify which tells me if the scores are valid this function in turn calls ratethegroup.I have everything finished except i cant get this function to work(ratethegroup)
if the total score is 2100 or above and each score is 700 or above the group status is "outstanding"
if the total score is 2100 or above and exactly two scores are 700 or above the group status is "very good'
if the total score is 2100 or above and exactly one score is 700 or above the group status is "lop-sided'
if the total score is less than 2100 and no score is 500 or above the status is "weak"

otherwise(if no condition above is true) the group staus is "erratic"
how do i write this function in c++? the answer has to be basic its a beggining level coarse

Explanation / Answer

void ratethegroup(int score1,int score2, int score3,int total) { if((total>=2100) && score1>=700 && score2>=700 && score3>=700 ) status="Outstanding"; else if((total>=2100) && (score1>=700 && score2>=700) ||(score2>=700 && score3>=700) ||(score1>=700 && score3>=700) || ) status="verygood"; else if((total=700 || score2>=700 || score3>=700 ) status="lop sided"; else if((total>=2100) && score1