Question: 2) Add the following functionally (methods NOT needed) W a. MUST use for loop(s) and arrays for the next 3 items (hint: our book covers

 2) Add the following functionally (methods NOT needed) W a. MUST
use for loop(s) and arrays for the next 3 items (hint: our

2) Add the following functionally (methods NOT needed) W a. MUST use for loop(s) and arrays for the next 3 items (hint: our book covers the l"' two specifically): i. Compute and display the sum of all the integers in the array ii. Compute and display the average of all the integers in the array iii. Determine the # of passing grades (70 and above) and display the total # of passing grades in the array package arraytest; import java.util.Scanner; public class ArrayTest{ static final int MAX = 3; public static void main(String[] args) { Scanner input = new Scanner(System.in); intl grades = new int [MAX]; // declare 1D array // for loop used to read values into 1D array for (int i=0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!