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

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

ID: 3641130 • Letter: I

Question

i 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:
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++?

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