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
Introduction to graphic design please help! Define the four terms: design ,art,decoration , and visual literacy. Describe how th
erastovalidia [21]
Graphic design involves activities , usually done on the computer in which pictures, graphs, text and other elements are combined as a edit to books, magazines, advertisements. 
Activities which are part from this job are:
Design: the creation of ideas, plans and finally creation of object, pictures,...
Art: expressing the imagination through different ways of expression/ 
Decoration: adding something to the graphic design in order to look and act nicer
Visual literacy: the ability to understand existing trends and to learn new ones
8 0
3 years ago
Which of the following is not a true statement? a. Data flow diagrams and flowcharts are difficult to prepare and revise using s
Nimfa-mama [501]

Answer:

a. Data flow diagrams and flowcharts are difficult to prepare and revise using software packages.

Explanation:

A data flow diagram is a graphical description of the source and destination of data that shows how data flow within an organization.

Documentation tools are used extensively in the systems development process.

Data flow diagrams and flowcharts are the two most frequently used systems development documentation tools. Also, documentation tools save an organization both time and money.

7 0
3 years ago
The ___________________ Act makes it illegal to deactivate or otherwise disable any antipiracy technologies including DRM techno
arsen [322]

Answer:

Digital Millennium Copyright Act

Explanation:

Digital Millennium Copyright Act (DMCA) is a protection placed on creative works online and gave content owners the authority to have their contents removed from websites who use it without permission, the act prohibits the reselling and giving away of commercial programs, contents or devices, violating the act is criminal

5 0
4 years ago
Was the big blue button thing a good decision or bad?<br> *I think it was a bad idea.
Gala2k [10]

sorry i just got banned so delete this answer plz i was banned and i wanted to see if they unbanned me

8 0
3 years ago
Read 2 more answers
5. You have been putting off writing a research paper, and now it's due in two days. You have gathered
DiKsa [7]
You should use the website most of the sites that u pay for an essay on will have plagiarism checkers and the essays should be new !
6 0
3 years ago
Other questions:
  • What are the tiny little dots that make up a digital photograph?
    8·2 answers
  • What two features distinguished Windows 2.0 from Windows 1.0?
    5·1 answer
  • "Two technicians are discussing FWD driveshaft service. Technician A says that removal of the driveshaft usually requires partia
    15·1 answer
  • With respect to the five components of social media information systems (SMIS), which of the following statements is true of SM
    11·1 answer
  • The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help an eleme
    9·1 answer
  • Jade has to present a paper on the basic architecture of the Princeton microcomputer architecture model. Which option will he hi
    5·1 answer
  • Select the correct answer.
    5·1 answer
  • Software que busca, detecta y elimina malware tipo espía; puede instalarse en la computadora de manera aislada o en conjunto con
    11·1 answer
  • Mention five of the format tools use to edit a picture in a word document<br>​
    13·1 answer
  • Software that allows users to use and adapt it for any purpose, often allowing the public to participate in further development
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!