subject
Computers and Technology, 02.09.2019 18:10 LulPink

Write a program in java to find the maximum values in each row and column of a two-dimensional array of integers read from the user. first ask the user for the number of rows and columns, then allocate the two-dimensional array of that size. next read from the user each row of values, store them then output the maximum values for each row (horizontal) and column (vertical). can some one me in this program. in java sample 1 (user inputs are shown in bold italics) how many rows? 5 how many columns? 4 enter the values of row 0 separated by spaces 52 68 62 75 enter the values of row 1 separated by spaces 88 52 -84 -68 enter the values of row 2 separated by spaces -24 51 -67 82 enter the values of row 3 separated by spaces 14 78 61 97 enter the values of row 4 separated by spaces 67 -11 4 47 results: 52 68 62 75 [75] 88 52 -84 -68 [88] -24 51 -67 82 [82] 14 78 61 97 [97] 67 -11 4 47 [67] [88] [78] [62] [97]

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, 2alshawe201
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
image
Computers and Technology, 24.06.2019 00:40, sierravick123owr441
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
image
Computers and Technology, 24.06.2019 10:00, wwwcarolynzouowficz
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
image
Computers and Technology, 24.06.2019 21:40, justintintran
Assume you need to test a function named inorder. the function inorder receives three int arguments and returns true if and only if the arguments are in non-decreasing order: that is, the second argument is not < the first and the third is not < the second. write the definition of driver function testinorder whose job it is to determine whether inorder is correct. so testinorder returns true if inorder is correct and returns false otherwise. for the purposes of this exercise, assume inorder is an expensive function call, so call it as few times as possible!
Answers: 1
You know the right answer?
Write a program in java to find the maximum values in each row and column of a two-dimensional array...

Questions in other subjects: