The Grades Array
Q1) Make the grades array.Q2) Using an ehanced for loop, add up the numbers in the last array [1,3,2,1,1].Q3)Do the same but with a traditional for loop.Q4) Write code to swap the 2 arrays [3,1,2] and [1,7,2]. // Look at the shoelace patternQ5) Using a traditional for loop, add up the first elements of each array (3 + 4 + 1 + 1).Q6) Do the same but with an enhanced for loop.Q7) Replace the array [4,3] with the array [1,2,1].Q8) Add up all the numbers in the 2D array using an outer enhanced for loop and an inner traditional for loop.Q9) Add up all the numbers in the 2D array using an outer traditional for loop and an inner enhanced for loop.Q10) Make grades refer to this new 2D array => { {1,2}, {1,1,1}, null }.Q11)a) scores is a 2D array of Integer, some of the arrays are null and some of the elements inside some arrays are null. Add up all the Integers without making your program crash.b) loop scores and remove any arrays with a length less than 3 (avoid nulls)Q12) Data is a 2D array of double (there are no nulls). Write code to add up its diagonal elements using only one traditional for loop (see pic.)
RECOMMENDED: [SOLVED] The Grades Array
With us, you are either satisfied 100% or you get your money back-No monkey business