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
luda_lava [24]
3 years ago
15

Write a C program to read the values of a 6 x 6 2D array from a file, and then produce an output file that contains the transpos

e of the array. Array values are decimal. The input and output files contain one array row on each text line
Computers and Technology
1 answer:
kvv77 [185]3 years ago
7 0

Answer:

Explanation:

#include <stdio.h>

int main()

{

   int arr[5][5], trans [5][5], i, j;

   // Entering elements to the matrix

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

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

       for (j = 0; j < 6; ++j) {

           printf("Enter element a%d%d: ", i + 1, j + 1);

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

       }

 

   printf("\nThe given input matrix is: \n");

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

       for (j = 0; j < 6; ++j) {

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

           if (j == 5)

               printf("\n");

       }

   // Transpose

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

       for (j = 0; j < 6; ++j) {

           trans[j][i] = a[i][j];

       }

   printf("\nThe output transpose of the matrix:\n");

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

       for (j = 0; j < 6; ++j) {

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

           if (j == 5)

               printf("\n");

       }

   return 0;

}

You might be interested in
A mechanic uses a screw driver to install a ¼-20 UNC bolt into a mechanical brace. What is the mechanical advantage of the syste
velikii [3]

Answer:

15.7 ; 78.5

Explanation:

Mechanical advantage of a screw = Circumference / pitch

Circumference = pi × d

Where :

pi = 3.142, D = diameter

Therefore ;

Circumference = 3.142 × (1/4) = 0.785 in

Pitch = 1/TPI

TPI (thread per inch) = 20

Pitch = 1/ 20 = 0.05

Mechanical advantage = 0.785 / 0.05 = 15.7

Resistance force if effort force is 5lb

Mechanical advantage = Fr / Fe

Fe = effort force, Fr = resistance force

15.7 = Fr / 5

Fr = 15.7 × 5 = 78.5 lbs

7 0
3 years ago
Deborah believes that people of other nationalities are inferior to her. She treats them with disdain and does not miss an oppor
belka [17]
I recommend asking another category, not sure which one but computers and technology is not a good start. Keep looking and good luck!
3 0
3 years ago
What are the characteristics of computer. Explain any one​
Pachacha [2.7K]

Answer:

<h3>Your answer will be on the picture above..</h3>

Explanation:

Hope it helps you..

Y-your welcome in advance..

(;ŏ﹏ŏ)(ㆁωㆁ)

7 0
3 years ago
Read 2 more answers
When I try to make an account, it always says that they are not able to complete the registration at this time. And I didn't alr
Anastasy [175]
Maybe just wait a day and try again
7 0
3 years ago
What does the hard disk drive do? It stores all of the information on a computer. It controls a computer’s operating system. It
umka21 [38]

The hard disk drive, OR HDD Stores all the information on the computer.

5 0
4 years ago
Read 2 more answers
Other questions:
  • What is the Web of Trust?
    12·1 answer
  • What word processing feature saves you the most time when keying a document a. Thesaurus
    9·1 answer
  • Which phase takes all the detailed design documents from the design phase and transforms them into the actual system? Testing ph
    7·1 answer
  • Write the definition of a method dashedLine, with one parameter, an int. If the parameter is negative or zero, the method does n
    8·1 answer
  • What is the biggest difference between single system recording and double system recording?
    8·1 answer
  • It is possible to turn extrinsic factors into intrinsic motivators. true or false
    5·2 answers
  • What is the relationship between the binary number system and computer hardware?
    9·1 answer
  • Does anyone know how to write this right? This is for a coding class and I’m super confused on it.
    13·1 answer
  • Language is PYTHON
    6·1 answer
  • What symbol does access use to the left of a record when it is currently being edited and is therefore locked so that other user
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!