1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
grin007 [14]
3 years ago
13

Array testGrades contains NUM.VALS test scores. Write a for loop that sets sumExtra to the total extra credit received. Full cre

dit 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);
Computers and Technology
1 answer:
Soloha48 [4]3 years ago
5 0

Answer:

12.       for (i = 0 ; i < testGrades.length ; i+=1 ){

13.           if (testGrades[i] > 100){

14.              sumExtra = sumExtra + testGrades[i] - 100;}

15.       }

Explanation:

We first iterate through the entire testGrades array. For each test score that is in testGrades ( that is testGrades[i] ), we see whether or not the test grade is above 100 (See line 12) . If test grade is greater than 100, this means we have extra credit. We simply subtract 100 from the test grade, add it with the previous value of sumExtra and store the value back in sumExtra(see line 14). Once i is greater than the length of the test grades, the loop is exited. We can now print sumExtra to obtain the result.

You might be interested in
The temperature in toronto canada was-4°c and tje temperature in brixton,england was 6°c warmer. what was the difference in temp
Oksana_A [137]

Answer:

It is 10°c difference between them

7 0
3 years ago
Who can pick up GPS signals
bazaltina [42]

Devices such as TomTom GPS and Garmin GPS pick up a GPS signal


I hope that's help !

5 0
3 years ago
Which of the following is powered by energy from earth's interior ?
butalik [34]
I think the correct answer from the choices listed above is option D. It would be plate tectonics that is powered by energy from Earth's interior since it is the only choice that is underneath the surface of the Earth. Hope this answers the question. Have a nice day.
3 0
3 years ago
What is an acceptable alternative to installing an audible backup alarm?
san4es73 [151]
<span>One alternative is the use of an observer/signal person. Due to the piercing noise that is usually associated with audible back-up alarms and its noise intrusiveness to nearby residents, having an observer who signals to others of oncoming construction equipment will meet the same safety requirement as having an audible backup alarm</span>
5 0
3 years ago
What can Maggie do to help her aunt in the following scenario?
tatiyna

Answer:

Train the computer to recognize Gertrude’s accent.

Explanation:

First make it easier for the computer to understand the accent rather than changing the word, because basket southern may sound something like basset which would be hard to understand still. Helping the computer understand one word is only going to solve one problem so it is best to explain the accent to the computer. Visual alternative will not work either because the computer will not look at one specific point of the picture and will get confused.

3 0
3 years ago
Other questions:
  • 8.6 Lesson Practice edhesive
    15·1 answer
  • Individuals with desirable traits will be __________ to have young that survive than individuals without these traits. (2 points
    5·2 answers
  • "A(n) ___________ is a radio transceiver that plays the same role as a hub or switch in a wired network and connects the WLAN to
    14·1 answer
  • What is a expansion card for computer?
    5·1 answer
  • Im bored, any anime recommendations? i probably watched whatever youre gonna say
    14·2 answers
  • (main.c File)
    7·1 answer
  • Indica si los elementos de las imagenes son una materia prima o un material elaborado
    12·1 answer
  • The purpose of Appetizers on the menu​
    6·2 answers
  • When we look for errors inside of our code on our own or with a partner , what is that called?
    9·2 answers
  • PlanthelogicforLungi’sapplicationusingpseudocode.Thelogicneedstosatisfythefollowingneeds:TheapplicationwillneedtoallowLungitoen
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!