Question: 5 7 9 2 8 0 . 4 3 5 9 6 1 8 . q 3 z q y 7 Array testGrades contains NUM

579280.4359618.q3zqy7
Array testGrades contains NUM_VALS test grades read from input. Organize the lines of code to create a for loop that sets
sumExtra to the total extra credit received. Full credit is 100, so any grade over 100 has extra credit.
Ex: If the input is 1018310790, then the output is:
sumExtra: 8
because 1+0+7+0 is 8.
Note: This activity includes distractors. Not all lines of code on the left will be used in the final solution.
How to use this tool
Unused
if (testGrades[i]>100){
for (i =0; i = NUM_VALS; ++i){
if (testGrades[i]100){
}
sumExtra = sumExtra +(testGrades[i]-100);
sumExtra =0;
for (i =0; i NUM_VALS; ++i){
}
main.cpp
Load default template...
#include
5 7 9 2 8 0 . 4 3 5 9 6 1 8 . q 3 z q y 7 Array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!