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 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 23:30
True or false when a host gets an ip address from a dhcp server it is said to be configured manually
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
To remove text from a specific location and keep it to use again, you should select
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
Mathematics, 24.10.2021 16:50
question
Mathematics, 24.10.2021 16:50
question
Mathematics, 24.10.2021 16:50
question
Computers and Technology, 24.10.2021 16:50
question
Biology, 24.10.2021 16:50
Questions on the website: 13722362