(Solved) : Write Java Program Use Two Dimensional Array Modularity Solve Following Tasks 1create Meth Q42776535 . . .

Write a Java program that will use a two – dimensional array andmodularity to solve the following tasks:

1.Create a method to generate a 2-dimensional array (randomnumbers, range 0-500).The array has ROW rows and COL columns, whereROW and COL are class constants.

2.Create a method to print the array.

3. Create a method to find the largest element in the array

4.Create a method to find the smallest element in the array

5. Create a method to find the sum of all elements in thearray

Sample Output: The array elements are: 72 353 281 223 426 188 415 391 197 214 357 285 129 381 146 219 384 152 327 33 76 381 3

Sample Output: The array elements are: 72 353 281 223 426 188 415 391 197 214 357 285 129 381 146 219 384 152 327 33 76 381 303 43 254 393 399149 428 84 433 3 113 356 155 153 409 67 370 205 161 114 433 466 262 5 487 262 157 376 266 368 435 432 359 3 57 256 273 147 52 27 5 440 174 176 208 224 79 348 276 361 107 451 379 140 294 150 14 214 428 380 78 83 249 420 433 224 337 189 425 42 311 126 26 362 230 318 207 88 308 120 145 210 399 7 498 203 332 41 345 142 129 418 198 104 83 456 32 144 28 172 248 193 145 343 382 52 27 446 468 421 73 480 48 166 75 451 143 499 434 450 74 149 165 466 157 160 135 Second row elements are: 219 384 152 327 33 76 381 303 43 254 393 399 149 428 84 Third column elements are: 281 152 113 262 5 150 311 498 17275 Range of values/array: 3 – 499 The sum of all elements/array = 36631 The average of all elements/array = 244.21 Show transcribed image text Sample Output: The array elements are: 72 353 281 223 426 188 415 391 197 214 357 285 129 381 146 219 384 152 327 33 76 381 303 43 254 393 399149 428 84 433 3 113 356 155 153 409 67 370 205 161 114 433 466 262 5 487 262 157 376 266 368 435 432 359 3 57 256 273 147 52 27 5 440 174 176 208 224 79 348 276 361 107 451 379 140 294 150 14 214 428 380 78 83 249 420 433 224 337 189 425 42 311 126 26 362 230 318 207 88 308 120 145 210 399 7 498 203 332 41 345 142 129 418 198 104 83 456 32 144 28 172 248 193 145 343 382 52 27 446 468 421 73 480 48 166 75 451 143 499 434 450 74 149 165 466 157 160 135 Second row elements are: 219 384 152 327 33 76 381 303 43 254 393 399 149 428 84 Third column elements are: 281 152 113 262 5 150 311 498 17275 Range of values/array: 3 – 499 The sum of all elements/array = 36631 The average of all elements/array = 244.21

Expert Answer


Answer to Write a Java program that will use a two – dimensional array and modularity to solve the following tasks: 1.Create a met…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?