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
vovikov84 [41]
3 years ago
5

. The variable numbers is a 2-dimensional array of type int; output all of its elements that are strictly greater than 10

Computers and Technology
1 answer:
lana66690 [7]3 years ago
3 0

Answer:

// here is code in c++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

   // variable to read row and column of 2-d array

  int r,c;

  cout<<"enter the number of row:";

  // read number of row

  cin>>r;

  cout<<"enter the number of column:";

  // read number of column

  cin>>c;

     // create an array of size rxc

  int arr[r][c];

  cout<<"enter the elements of the array:"<<endl;

     // read the elements of 2-d array

  for(int i=0;i<r;i++)

  {

      for(int j=0;j<c;j++)

      {

          cin>>arr[i][j];

      }

  }

  cout<<"numbers which are greater than 10 in 2-d array"<<endl;

  for(int i=0;i<r;i++)

  {

      for(int j=0;j<c;j++)

      {

          // if element is greater than 10, print it

          if(arr[i][j]>10)

          cout<<arr[i][j]<<" ";

      }

      cout<<endl;

  }

  return 0;

}

Explanation:

Read the size of 2-d array i.e row and column.Create a 2-d array of size rxc of integer type.Read the elements of the array. Then traverse the array and if an element if greater than 10 then print that element.

Output:

enter the number of row:3                                                                                                        

enter the number of column:3                                                                                                    

enter the elements of the array:                                                                                                

23 45 53 78 1 9 6 8 77                                                                                                                                

numbers which are greater than 10 in 2-d array                                                                                  

23 45 53                                                                                                                        

78                                                                                                                              

77        

You might be interested in
Which of the following is most often added to safety glasses to provide better protection from impact and flying particles? A. S
Vesnalui [34]

the answer is side shields cause the side shields gives more protection to the eyes than just the lens because the flying objects and particals can still get into your eyes even with the safty glasses but with the side shields the total risk of injury percentage goes down because the side shields helps blocks the flying objects and particals that are trying to get into your eye from the side

8 0
4 years ago
The first graphical browser application for using the web was netscape. <br> a. True <br> b. False
Mamont248 [21]
Hello <span>Jcece6710 
</span>

Question: <span>The first graphical browser application for using the web was netscape. True or False


Answer: True

Hope that helps
-Chris</span>
5 0
3 years ago
Q1. Information systems that monitor the elementary activities and transactions of the organizations are: I a. Management-level
VashaNatasha [74]

Answer:

B. Operational-level systems monitor the elementary activities and transactions of the organization.

6 0
2 years ago
I need help 50 points and brainless if you answer
nata0808 [166]

Answer:

50

var X gets passed into the rectangle function, which I assume would set the x and y coordinates to what the var's have already been set to.

4 0
3 years ago
Read 2 more answers
You are helping a friend in college with his network connection. He would like a high speed connection between his computers so
inna [77]

Solution :

Set up the router as follows:

On the Shelf, expand the Routers. And read the description for each of the devices. Drag the Ethernet $100/1000TX$ router with the firewall to the Workspace.

Connection of the router as follows:

Above the router, select the Back to switch to the back view of the router. Then select the cable currently connected to the wall plate and then drag it to a $LAN$ port on the router. Above the Dorm-$PC2$ computer, select $\text{back}$ to switch to the back view of the computer. On the Shelf, expand Cables. Select a Cat5e $RJ45$ cable. In the Selected Component window, drag the connector to the $LAN$ port on the computer. In the Selected Component window, drag the other connector to a $LAN$ port on the router. Select a Cat5e $RJ45$ cable. In the Selected Component window, drag a connector to the $WAN$ port on the router. In the Selected Component window, drag the other connector to the port on the wall plate.

Provide power to the router as follows:

On the Shelf, select the power adapter. In the Selected Component window, drag the DC power connector to the power port on the router. In the Selected Component window, drag the AC adapter connector to the surge protector. Above the router, select Front to switch to the front view to verify power and network activity lights.

Request new $TCP/IP$ information from the router for Dorm-PC as follows:

On the $\text{Dorm-PC}$ monitor, select Click to view $\text{Windows 10}$.In the Search field on the taskbar, enter command prompt. Under Best Match, select Command Prompt. Enter $\text{ipconfig}$ /renew and press $\text{Enter}$ to request new $TCP/IP$ information from the router. In the notification area, right-click the Network icon and select Open Network and Sharing Center. The network information map should indicate an active connection to the Firewall Network and the internet.

Configure Windows Firewall on $\text{Dorm-PC}$ as follows:

In Network and Sharing, select Windows Firewall. From the left menu, select Turn Windows Firewall on or off. Under Private network settings, select Turn on Windows Firewall. Under Public network settings, select Turn on Windows Firewall. Click OK.

4 0
3 years ago
Other questions:
  • ________ are devices used to send data between two networks.
    11·1 answer
  • When you enter a two-digit year that is less than 30, Excel changes the year to _____. Question 7 options:
    7·1 answer
  • Laura has identified the job she wants, the skills needed for the position, and the areas she needs to improve in order to get i
    10·1 answer
  • The idea behind ____ is that the peripheral can simply be plugged in and turned on, and that the computer should dynamically rec
    10·1 answer
  • How do emotions affect purchasing decisions?
    6·1 answer
  • Concentric circles on a disk platter where data is stored;________
    8·1 answer
  • IMPORTANT!!<br><br> How can you get real answer keys for edmentum (plato) courses as a student?
    11·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    7·2 answers
  • A town government is designing a new bus system. The planners are deciding where to put the different bus stops. They want to pi
    6·2 answers
  • You began a small mobile app company. To help market your apps, you create a social media site. The site allows users to join co
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!