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
kkurt [141]
4 years ago
10

Write a program to find the transpose of a 5x5 matrix. You have toask the user to enter the values for input matrix. Transpose i

sobtained by interchanging the rows and columns of the input matrix.Aij --> Aji. For example, if A is
1 4 6
2 9 5
6 3 6
Computers and Technology
1 answer:
skelet666 [1.2K]4 years ago
4 0

<u>C++ program for finding transpose of matrix</u>

#include<iostream>  

using namespace std;  

//driver function

int main()

{  

int matrix[5][5], transpomat[5][5], r, c;  

//Taking row number as input from user and storing in r  

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

cin>>r;  

//Taking column number as input from user and storing in c

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

cin>>c;  

/* Taking elements of matrix as input from user

*/  

cout<<"Enter elements: "<<endl;  

for(int a =0;a<r;a++) {  

for(int b=0;b<c;b++) {  

cin>>matrix[a][b];  

}  

}  

// Loop for finding transpose matrix

for(int a=0;a<r;a++) {  

for(int b=0;b<c;b++) {  

transpomat[b][a] = matrix[a][b];  

}  

}  

//Printing the transpose matrix  

cout<<"Transpose of Matrix: "<<endl;  

for(int a=0;a<c;a++) {  

for(int b=0;b<r;b++) {  

cout<<transpomat[a][b]<<" ";  

/* Formatting output as a matrix  

*/  

if(b==r-1)  

cout<<endl;  

}  

}  

return 0;  

}

<u>Output</u>

Enter the number of row:3

Enter the number of column:3

Enter elements:

1 4 6

2 9 5

6 3 6

Transpose of Matrix:

1 2 6

4 9 3

6 5 6

You might be interested in
The first computer introduced was the IBM PC. A. True B. False
Lerok [7]
The answer to your question is true
5 0
3 years ago
Read 2 more answers
If you want to place the insertion point in a cell to edit a specific part of its contents, you can
Vlad1618 [11]
Pretty sure,
A. Click The Cell
5 0
3 years ago
Give an explanation of one network connection (it will every helpful​
charle [14.2K]

Answer:

WiFi, Ethernet, Broadband, Dial-up. Any of those.

Explanation:

Network connections are all different. Those listed are some of the many examples of network connections.

7 0
3 years ago
1 pts Question 5 Which of the following calculations would evaluate to 12? (36) + 2/2, 3* ((6+2)/2), 3* 6+2/2, (306+ 2)/2​
julia-pushkina [17]

Answer:

Could you seperate them if they are different answers? I'm lost, sorry!

Explanation:

5 0
3 years ago
Give your definition of a view. Based on the Academic Database, identify and describe a scenario where it would be necessary to
il63 [147K]

Answer:

A database view is a searchable object in a database that is defined by a query. Though a view doesn't store data, some refer to a views as “virtual tables,” you can query a view like you can a table. A view can combine data from two or more table, using joins, and also just contain a subset of information.

Explanation:

A database view is a subset of a database that is based on a query that runs on one or more database tables. Database views are saved in the database as named queries and can be used to save complete queries that are frequently used.

7 0
3 years ago
Other questions:
  • Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds.
    8·1 answer
  • What is a Photojournalist
    5·1 answer
  • A ________ topology uses more than one type of topology when building a network. crossover multiple-use fusion hybrid
    11·1 answer
  • Write a class named Accumulator containing: An instance variable named sum of type integer. A constructor that accepts an intege
    14·1 answer
  • Which of the following represents the biggest difference between asymmetric and symmetric cryptography?
    9·1 answer
  • Describe three perimeter intrusion detection systems and give an example of one that you have seen deployed either at work or an
    8·1 answer
  • What does the history feature in a web browser do
    10·1 answer
  • A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-lif
    12·1 answer
  • State the functions of all the parts of the computer​
    14·1 answer
  • Pls help now the question is very hard someone help me pls​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!