Question
Create a new Java application called MinMax (without the quotation marks) that declares an array of doubles of length 5, and uses methods to populate
Create a new Java application called "MinMax" (without the quotation marks) that declares an array of doubles of length 5, and uses methods to populate the array with your quiz grades from Modules 1-5 and to print out the max (highest) and min (lowest) values in the array.
Here is my code so far:
package minmax; import java.util.Scanner;
public class MinMax {
public static void main(String[] args) { //Create array of grades with one column and five rows double[][] studentGrades = new double [1][5]; //Insert grades studentGrades [0][0] = 88; studentGrades [0][1] = 100; studentGrades [0][2] = 92; studentGrades [0][3] = 92; studentGrades [0][4] = 96; String scoresList = "88, 100, 92, 92, 95";
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started