Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE ACTIVITY 54 4. Array iteration Sum of 0.9.4. Alay iteration sum ore Array testGrades contains NUM_VALS test scores. Write a for loop that sets

image text in transcribed
CHALLENGE ACTIVITY 54 4. Array iteration Sum of 0.9.4. Alay iteration sum ore 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 + Ois 8. 1 import java.util.Scanner; lialia 3 public class SumOfExcess public static void main(String args) { Scanner ser-new Scanner(System.in); final int NUM_VALS - 4; int testGrades = new int[NUM. VALS); int 1; int sunExtra -9999; // Assign sunExtra with for (i - @; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

More Books

Students also viewed these Databases questions