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 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
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 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
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
Computers and Technology, 30.09.2021 18:40
question
Mathematics, 30.09.2021 18:40
question
Computers and Technology, 30.09.2021 18:40
question
Physics, 30.09.2021 18:40
question
Mathematics, 30.09.2021 18:40
question
Mathematics, 30.09.2021 18:40
Questions on the website: 13722361