Answer:
The C program is commented in the explanation
Step-by-step explanation:
I am going to write a C program, a function that receives an array and the array length.
I can update each position with a for loop. This loop is going to end at the next to lastPosition(so, i < n-1);
void sum(int * bonusScores, int n){
int i;
for(i = 0; i < n-1; i++){
bonusScores[i] = bonusScores[i] + bonusScores[i+1]
}
}
This should do it :)