selam arkadaşlar
Project 2:
Write a class that has the following methods:
(a)Write a method int sumAA(int[][] arr) which sums all the integers in an array of arrays of integers.
(b)Write a method int maxAA(int[][] arr) which finds the maximum of all the integers in an array of arrays of integers.
(c)Write a method int[] findRowMins(int[][] arr) which finds the minimum value in each row of an array of arrays of integers and retuns all these values in an array.
(d)Write a method int[] findColMaxs(int[][] arr) which finds the maximum value in each column of an array of arrays of integers and retuns all these values in an array. Be careful to ignore array elements that are not there!
(e)Write a method int weightedSum(int[] arr) that produces as result
the sum consisting of the first element plus twice the second element plus three times
the third element etc.WITHOUT doing any multiplication. You may not use * in
this answer.
if the original array contains values a0, a1, a2. ..an
the result should be a0+2 a1+3 a2 ...+(n+1)an
Example: parameter: {1,2,3,4,9} result 75
Write the main method: define suitable arrays in the main method to call and test your methods from main and show the outputs of the methods on the screen. The first line of the output should be your name and ID.
BU KONUDA BANA YARDIM EDEBİLCEK VARMI
not:önemliymiş
Project 2:
Write a class that has the following methods:
(a)Write a method int sumAA(int[][] arr) which sums all the integers in an array of arrays of integers.
(b)Write a method int maxAA(int[][] arr) which finds the maximum of all the integers in an array of arrays of integers.
(c)Write a method int[] findRowMins(int[][] arr) which finds the minimum value in each row of an array of arrays of integers and retuns all these values in an array.
(d)Write a method int[] findColMaxs(int[][] arr) which finds the maximum value in each column of an array of arrays of integers and retuns all these values in an array. Be careful to ignore array elements that are not there!
(e)Write a method int weightedSum(int[] arr) that produces as result
the sum consisting of the first element plus twice the second element plus three times
the third element etc.WITHOUT doing any multiplication. You may not use * in
this answer.
if the original array contains values a0, a1, a2. ..an
the result should be a0+2 a1+3 a2 ...+(n+1)an
Example: parameter: {1,2,3,4,9} result 75
Write the main method: define suitable arrays in the main method to call and test your methods from main and show the outputs of the methods on the screen. The first line of the output should be your name and ID.
BU KONUDA BANA YARDIM EDEBİLCEK VARMI
not:önemliymiş