- 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

23rd Oct 2016, 11:36 PM
Darren Carrillo
Darren Carrillo - avatar
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?
24th Oct 2016, 1:47 AM
Zeke Williams
Zeke Williams - avatar
0
yes thank you so much
24th Oct 2016, 1:53 AM
Darren Carrillo
Darren Carrillo - avatar
0
algorithm of that please somone
24th Oct 2016, 12:37 PM
Darren Carrillo
Darren Carrillo - avatar
0
how to write its pseudo code
3rd Feb 2021, 8:41 PM
jofrey jovinary
jofrey jovinary - avatar
0
HOW TO WRITE ITS PSEUDOCODE
4th Feb 2021, 10:57 AM
Okeyo Geofrey
Okeyo Geofrey - avatar
0
HOW TO WRITE ITS PSEUDOCODE
4th Feb 2021, 10:57 AM
Okeyo Geofrey
Okeyo Geofrey - avatar