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.import java. util. Scanner; public class SumOfExcess { public static void main (String [] args) { Scanner scnr = new Scanner(System. in); final int NUM_VALS = 4; int[] testGrades = new int[NUM_VALS]; int i; int sumExtra = -9999; // Assign sumExtra with 0 before your for loop for (i = 0; i < testGrades. length; ++i) { testGrades[i] = scnr. nextInt(); } System. out. println("sumExtra: " + sumExtra); } }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
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
Physics, 02.02.2021 14:00
question
Physics, 02.02.2021 14:00
question
Chemistry, 02.02.2021 14:00
question
Physics, 02.02.2021 14:00
question
Mathematics, 02.02.2021 14:00
question
History, 02.02.2021 14:00
question
English, 02.02.2021 14:00
Questions on the website: 13722361