Question: 1- O Course Modules: 2018FA-CS-182 x CS-182-Module 09-Lab-Multidi eChegg Study! Guided Solutions G how to take a screenshot on av x + file:///C/Users/laith/Desktop/CS-182-Module-09-Lab-Multidimensional-Arrays%20(2).pdf CS 1





1-
O Course Modules: 2018FA-CS-182 x CS-182-Module 09-Lab-Multidi eChegg Study! Guided Solutions G how to take a screenshot on av x + file:///C/Users/laith/Desktop/CS-182-Module-09-Lab-Multidimensional-Arrays%20(2).pdf CS 1 (2).pdf In this lab, we are going to build a two-dimensional array in which we will store double values. We will prompt the user to enter the size of the array, then prompt the user to enter the values that will be stored in each element of the array. We will then create a method, locateLargest, to search find the element that has the largest value in the array. This method will return a single-dimensional array that indicates the x,y coordinates of the element with the largest value 1 Create an application called FindElement in netbeans. This application will need a number of parameters: Scanner class variable, called keyboard, for inputting information Integer variables, called numberOfRows and numberOfColumns, for storing the dimensions of the array Two dimensional array of double values, called arrayElements, which is the two dimensional array This is a reference to a two dimensional array, which will not be created at this time. There reference will be null, since it is not pointing to anywhere One dimensional array of two integer values. This array will contain the row and column of the location in the array that has the largest value. 2 The user will determine the size of the 2-dimensional array that they want to create. Prompt the user to enter the dimensions of the array, read the dimensions from the keyboard and store them into the variables numberOfRows and numberOfColumns. 3You will need to allocate memory for the two-dimensional double array using the new command. This will create memory and store the reference value into the variable arrayElements When you create an array, you need to allocate memory for it by the following command. arrayElements new double[numberOfRows] [numberOfColumns]; By using new, the computer will allocates space for the array and store the memory location of the array into the memory reference, which is stored in the arrayElements variable. For Example: if the user responds with an array of 3 rows and 4 columns, it will correspond to the following: arrayElements023 column When we want to reference the location of an array, we use arrayElements, along with the row and column for the specified location. arrayElements[01 t0] references location 'a' arrayElements [0 references location 'b arrayElements[01[2] references location 'c O Type here to search 1:03 AM 10/20/2018 O Course Modules: 2018FA-CS-182 x CS-182-Module 09-Lab-Multidi eChegg Study! Guided Solutions G how to take a screenshot on av x + file:///C/Users/laith/Desktop/CS-182-Module-09-Lab-Multidimensional-Arrays%20(2).pdf CS 1 (2).pdf In this lab, we are going to build a two-dimensional array in which we will store double values. We will prompt the user to enter the size of the array, then prompt the user to enter the values that will be stored in each element of the array. We will then create a method, locateLargest, to search find the element that has the largest value in the array. This method will return a single-dimensional array that indicates the x,y coordinates of the element with the largest value 1 Create an application called FindElement in netbeans. This application will need a number of parameters: Scanner class variable, called keyboard, for inputting information Integer variables, called numberOfRows and numberOfColumns, for storing the dimensions of the array Two dimensional array of double values, called arrayElements, which is the two dimensional array This is a reference to a two dimensional array, which will not be created at this time. There reference will be null, since it is not pointing to anywhere One dimensional array of two integer values. This array will contain the row and column of the location in the array that has the largest value. 2 The user will determine the size of the 2-dimensional array that they want to create. Prompt the user to enter the dimensions of the array, read the dimensions from the keyboard and store them into the variables numberOfRows and numberOfColumns. 3You will need to allocate memory for the two-dimensional double array using the new command. This will create memory and store the reference value into the variable arrayElements When you create an array, you need to allocate memory for it by the following command. arrayElements new double[numberOfRows] [numberOfColumns]; By using new, the computer will allocates space for the array and store the memory location of the array into the memory reference, which is stored in the arrayElements variable. For Example: if the user responds with an array of 3 rows and 4 columns, it will correspond to the following: arrayElements023 column When we want to reference the location of an array, we use arrayElements, along with the row and column for the specified location. arrayElements[01 t0] references location 'a' arrayElements [0 references location 'b arrayElements[01[2] references location 'c O Type here to search 1:03 AM 10/20/2018
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
