subject

Array testGrades contains NUM_VALS test scores. Write a for loop that sets sumExtra to the total extra credit received. Full credit is 100, so anything over 100 is extra credit. Ex: If testGrades = {101, 83, 107, 90}, then sumExtra = 8, because 1 + 0 + 7 + 0 is 8.#include using namespace std;int main() {const int NUM_VALS = 4;int testGrades[NUM_VALS];int i = 0;int sumExtra = -9999; // Assign sumExtra with 0 before your for looptestGrades[0] = 101;testGrades[1] = 83;testGrades[2] = 107;testGrades[3] = 90;/* Your solution goes here */cout << "sumExtra: " << sumExtra << endl;return 0;}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
You know the right answer?
Array testGrades contains NUM_VALS test scores. Write a for loop that sets sumExtra to the total ext...
Questions
question
English, 17.02.2022 14:00
question
Mathematics, 17.02.2022 14:00
question
History, 17.02.2022 14:00
question
Mathematics, 17.02.2022 14:00
question
Mathematics, 17.02.2022 14:00
Questions on the website: 13722359