Computers and Technology

Help!! Will mark Brainliest!
A method is to be written to search a 2D array for a value that is larger than a given item and return its index. The problem specification does not indicate what should be returned if there are several values that are larger in the 2D array. Which of the following would be the best course of action?
a.)The method should be written assuming that there is only one value in the 2D array that is larger than the given item.
b.)The method should be written to output a message whenever more than one larger value is found.
c.) The method should be written to return the index of every occurrence of a larger value.
d.)After the first suitable index is returned, the method should be written to delete all later larger items.
e.)The specification should be modified to specify what should be done if there is more than one index with larger values

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:00, rajenkins79
What is stored in str after the following code executes? string str = "computer science"; int i = 0; while (i < 8) { if (str. indexof("m") < i) { str = str. substring(0, 2) + str; } i += 2; } computer science cocomputer science cococomputer science cocococomputer science computer scienceco
Answers: 3
image
Computers and Technology, 23.06.2019 01:30, anggar20
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, meganwintergirl
Ineed to know the anwser to all these questions
Answers: 2
image
Computers and Technology, 24.06.2019 17:50, jones03riley
You work in the accounting department and have been using a network drive to post excel workbook files to your file server as you complete them. when you attempt to save a workbook file to the drive, you see the error message: “you do not have access to the folder ‘j: \’. see your administrator for access to this folder.” what should you do first
Answers: 2
Do you know the correct answer?
Help!! Will mark Brainliest!
A method is to be written to search a 2D array for a value that i...

Questions in other subjects:

Konu
Mathematics, 22.01.2021 14:00
Konu
Health, 22.01.2021 14:00