- 2
a class of ten students took a quiz the grades ( integer in range of 0_100) for this quiz are avialabe to you.calculate and display the total of all student grades and the cladd average on the quiz.. plzz help
6 odpowiedzi
+ 2
int arr[10] = {76, 80, 92, 79, 84, 86, 95, 70, 63, 73};
int sum = 0;
for (int i = 0; i < 10; i++) {
sum += arr[i];
}
cout << "The total of all the grades is " << sum << "." << endl;
cout << "The average grade for this quiz is " << (double)sum/10 << endl;
Is this what you were looking for?
0
yes thank you so much
0
algorithm of that please somone
0
how to write its pseudo code
0
HOW TO WRITE ITS PSEUDOCODE
0
HOW TO WRITE ITS PSEUDOCODE