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; 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 ; 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);

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 23.06.2019 20:00
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 18:20
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
You know the right answer?
Array testgrades contains num. vals test scores. write a for loop that sets sumextra to the total ex...
Questions
question
Mathematics, 23.10.2021 07:20
question
Mathematics, 23.10.2021 07:20
question
Health, 23.10.2021 07:20