Answer:
C++ code:
bool ScaleGrade(int points, char& grade) {
if (points >= 67 && points < 80 && grade != 'C') {
grade = 'C';
return true;
}
return false;
}
Step-by-step explanation:
Step-by-step explanation:
- The function is defined with two parameters, an integer `points` and a character `grade`, passed by reference.
- The function first checks if `points` is within the range of 67 to 79, and if `grade` is not already 'C'.
- If the condition is true, the function assigns 'C' to `grade` and returns true.
- If the condition is false, the function returns false without changing `grade`.