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
____ [38]
3 years ago
8

Given a matrix, clockwise-rotate elements in it. Please add code to problem3.cpp and the makefile. Use the code in p3 to test yo

ur code. Submit your code and a cpp.sh url, like in your projects and previous assignments. For the cpp.sh url, put your solution into one large program.
Input
1 2 4
5 7 8
3 6 9

Output:
4 1 2
7 5 3
8 9 6
Engineering
1 answer:
rusak2 [61]3 years ago
5 0

Answer:

/* C Program to rotate matrix by 90 degrees */

#include<stdio.h>

int main()

{

int matrix[100][100];

int m,n,i,j;

printf("Enter row and columns of matrix: ");

scanf("%d%d",&m,&n);

 

/* Enter m*n array elements */

printf("Enter matrix elements: \n");

for(i=0;i<m;i++)

{

 for(j=0;j<n;j++)

 {

  scanf("%d",&matrix[i][j]);

 }

}

 

/* matrix after the 90 degrees rotation */

printf("Matrix after 90 degrees roration \n");

for(i=0;i<n;i++)

{

 for(j=m-1;j>=0;j--)

 {

  printf("%d  ",matrix[j][i]);

 }

 printf("\n");

}

 

return 0;

 

}

You might be interested in
What’s another name for a service overcurrent device?
alexandr402 [8]
Overcurrent protective devices, or OCPDs
4 0
3 years ago
Every two years or at recommendation by manufacturer.
9966 [12]

Answer:

Manufacturer’s Recommendations means the instructions, procedures, and recommendations which are issued by the manufacturer of any equipment used at the Facility relating to the operation, maintenance, or repair of such equipment, and any revisions or updates thereto from time to time issued by the manufacturer.

Manufacturer’s Recommendations means the instructions, procedures and recommendations which are issued by any manufacturer of the Equipment relating to the operation, maintenance and repair of the Equipment and any revisions to such instructions, procedures and recommendations agreed to by any manufacturer of the Equipment and which are valid at the time such operation, repair and maintenance is being carried out.

Manufacturer’s Recommendations means the written instructions, procedures and recommendations which are issued by the original equipment manufacturer of any plant or equipment used at the Utility Plant relating to the operation, maintenance and repair of such plant or equipment and any revisions thereto issued by the manufacturer, which are valid and applicable at the time such operation, maintenance or repair is undertaken. Notwithstanding the above, Manufacturer’s Recommendations shall not include any instructions, procedures or recommendations of a manufacturer of any plant or equipment that the Owner and the Operator have agreed in writing to exclude from this definition or have agreed in writing should not be followed.

Explanation:

4 0
2 years ago
3) Explain how dc machines Can work as motor and generator​
weeeeeb [17]

The working principle of a DC machine is when electric current flows through a coil within a magnetic field, and then the magnetic force generates a torque that rotates the dc motor. The DC machines are classified into two types such as DC generator as well as DC motor.

5 0
1 year ago
99 POINTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
qwelly [4]

Answer:

1. Can you tell me something about yourself?

2. What are you weaknesses?

3. If you would describe yourself in one word?

Explanation: Those questions above 1, 2, and 3 are not harmful to ask your client. Bit the last two 4 and 5 are very harmful, because you don't need to be all up in they business and you don't want to put a lot of pressure on your client.

Hope this helps☝️☝☝

7 0
3 years ago
Read 2 more answers
A eutectic alloy is which of the following (two correct answers): (a) the composition in an alloy system at which the two elemen
NeTakaya

Answer:

Option (c) and option (d)

Explanation:

Eutectic system is one in which a solid and homogeneous mixture of two or more substances resulting in the formation of super lattice is formed which can melt or solidify at a temperature lower than the melting point of any individual metal.

Eutectic alloys are those which have its components mixed in a specific ratio.

It is the composition in an alloy system for which both the  liquidus and solidus temperatures are equal.

Eutectic alloys have the composition in which the melting point of the metal is lower than the other alloy composition.

3 0
3 years ago
Other questions:
  • Select the material used to clean a prototype board before soldering.
    5·1 answer
  • At a certain elevation, the pilot of a balloon has a mass of 120 lb and a weight of 119 lbf. What is the local acceleration of g
    6·1 answer
  • What is an ip<br> Number
    12·1 answer
  • The pressure in an automobile tire depends on thetemperature of the air in the tire. When the air temperature is25°C, the pressu
    11·1 answer
  • Description: Write a function that takes in a list of numbers and a list of indices. Note that indexList may not only contain va
    8·1 answer
  • All sized companies are required to have a written fire prevention plan true or false
    14·2 answers
  • (Signal Property) Under what condition is a discrete-time signal x[????] or a continuous-time signal x(????) periodic? Determine
    5·1 answer
  • 4.7 If the maximum tensile force in any of the truss members must be limited to 22 kN, and the maximum compressive force must be
    9·1 answer
  • Please help I am give brainiliest
    9·1 answer
  • 12. Never spray brakes with a high-pressure stream of water or air because it could blow asbestos fibers into the air.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!