Question: 5 7 9 2 8 0 . 4 3 5 9 6 1 8 . q 3 z q y 7 Array testGrades contains NUM
Array testGrades contains NUMVALS 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 so any grade over has extra credit.
Ex: If the input is then the output is:
sumExtra:
because is
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 testGradesi
for i ; i NUMVALS; i
if testGradesi
sumExtra sumExtra testGradesi;
sumExtra ;
for i ; i NUMVALS; i
main.cpp
Load default template...
#include
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
