1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
yulyashka [42]
3 years ago
6

Consider the following code segment, where num is an integer variable.

Computers and Technology
1 answer:
posledela3 years ago
8 0

Answer:

Following are the complete code to the given question:

public class Main//main class

{

public static void main(String[] args) //main method

{

    int [][] arr = {{11, 13, 14 ,15},{12, 18, 17, 26},{13, 21, 26, 29},{14, 17, 22, 28}};//defining a 2D array

    int num=14;//defining an integer variable that holds a value 14

       for (int j = 0; j < arr.length; j++)//defining for loop to hold row value

       {

       for (int k = 0; k < arr[0].length; k++)//defining for loop to hold column value

       {

           if (arr[j][k] == num)//defining if block that checks num value

           {

               System.out.print(j + k + arr[j][k] + " ");//print value

           }

       }

       }

}

}

Output:

16 17

Explanation:

  • In the question, we use the "length" function that is used to finds the number of rows in the array.
  • In this, the array has the 4 rows when j=0 and k=2 it found the value and add with its index value that is 0+2+14= 16.
  • similarly when j=3 and k=0 then it found and adds the value which is equal to 3+0+14=17.
  • So, the output is "16,17".  
You might be interested in
PI
siniylev [52]

Explanation:

As the qn was copy pasted from another document...the qn seems incorrect... and incomplete..

pls see to it and attach the correct qn...

sorry

4 0
3 years ago
help this poped up on my pc im on my laptop what does it mean HELP rC % M i \g e - A u t o M e r g e d - b a s e ~ 3 1 b f 3 8 5
Fofino [41]
It means you need to get a new computer
4 0
2 years ago
Read 2 more answers
SAN Security Issues: What storage security issue might come to be a greater problem in the future?
viva [34]

Explanation:

  SAN security issue is define as storage area network security. Storage area network is the independent network of the storage device and system.

It is scalable and high speed network. By using SAN security we can directly access the storage device. It basically consolidate the sever storage device into the single central storage.

SAN security issue that may turn into the greater problem in the future are:

Network issue is the main issue in this storage device. We make sure that the users can only access that particular file that they want to access.

If the network issue not solve properly then it may cause internal attacks like DOS9Denial of service) attack.  

4 0
3 years ago
10. Realice un algoritmo que solicite números y los sume, solo se detendrá cuando se ingrese un número negativo.
Kisachek [45]
Hi! I don’t know what any of this means but I hope you have an amazing day and I hope god/allah/etc. blesses you :)
sorry I couldn’t answer
7 0
3 years ago
8. What is the order of growth execution time of the push operation when using the LinkedStack class, assuming a stack size of N
velikii [3]

The order of growth execution time of the push operation when using the LinkedStack class, assuming a stack size of N is; O(1)

<h3>Understanding Computer Programming Language</h3>

Let Top be the position of last element inserted in Array.

For Push operation, the process is as follows;

if(Top == last index of Array) {

Printf(“Stack Overflow”)

} else {

Top = Top + 1

a[Top] = element you want to insert

}

Read more about Computer Programming at; brainly.com/question/22654163

8 0
2 years ago
Other questions:
  • Write the printitem() method for the base class. sample output for below program: last name: smith first and last name: bill jon
    6·2 answers
  • Pls help me. ask yourself what would jesus do...
    14·1 answer
  • A Windows user has been successfully saving documents to the file server all morning. However, the latest attempt resulted in th
    9·2 answers
  • Which of the following could be omitted from a company's AUP? A.Permissible lunchtime online activities B.Employees' home email
    15·2 answers
  • How many suggestions available in correcting misspelled words<br>​
    11·1 answer
  • The Internet has made going global easier than it has ever been, but the promise of "borderless commerce" remains restrained bec
    12·1 answer
  • 5-16) (Bar Chart Printing Program) One interesting application of computers is to display graphs and bar charts. Write an applic
    10·1 answer
  • How can a user restore a message that was removed from the Deleted Items folder?
    10·1 answer
  • Prove that: P = hdg​
    7·2 answers
  • What’s your tiktok? if u have one
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!