Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm having some trouble with my computer science homework. There is a question at the end that I need help figuring out what to do.

I'm having some trouble with my computer science homework. There is a question at the end that I need help figuring out what to do. This is the question I'm having the most trouble with,

If you could just point me in the right direction on this and show how it done so I understand, that would be greatly appreciated. Java please.

image text in transcribed

Write a method named methodForFun that accepts a two dimensional array as parameter. This method will find the max and min element in a two dimensional array. After that, if will set the values of odd row to max, and set the values of even row to mean. For example, if we have a two dimensional array named twoDArray ={{1,2,3},{4,5,6}}, by passing twoDArray to your methodForFun method, twoDArray = {{6,6,6},{1,1,1}}. If the two dimensional array is empty, return 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions