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; 3 public class SumoFExcess (4 public static void main (String [ args) (Scanner scnr - new Scanner (System. in); final int NUM VALS - 4 int[] testGrades-new int[NUM VALS]; int ij int sunExtra 9999; 11 Assign sunExtra with 0 before your for loop 10 for (i-0; ǐ < testGrades. length; +.1) { testGrades[1]-scnr. nextInt) 12 14 15 / Your solution goes here 16 System. out. printin ("sumExtra:sumExtra);
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Array testGrades contains NUM. VALS test scores. Write a for loop that sets sumExtra to the total extra credit received. Full credit is ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » 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.