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, 21.06.2019 22:30
The blank is type of decision-maker who over analyzes information
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 22.06.2019 20:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
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
Chemistry, 26.01.2021 20:10
question
Engineering, 26.01.2021 20:10
Questions on the website: 13722361