C++ Program for Matrix Operations
Not what you're looking for?
Given the following matrices "A" and "B"
(Please see the attachment for the matrices.)
Write the C++ program for:
- Getting A^T (transpose of A)
- A + B
- A - B
Purchase this Solution
Solution Summary
This posting contains the solution to the given problem.
Solution Preview
#include < iostream >
using namespace std;
int main()
{
int matrixA[3][3] = {5, 10, 15, 20, 25, 30, 35, 40, 45};
int matrixB[3][3] = {3, 6, 9, 12, 15, 18, 21, 24, 27};
int transposeA[3][3];
int matrixSum[3][3];
int matrixDiff[3][3];
int i,j;
for(i=0; i< 3; i++)
{
for(j=0; j< 3; j++)
{
...
Purchase this Solution
Free BrainMass Quizzes
Basic Networking Questions
This quiz consists of some basic networking questions.
Javscript Basics
Quiz on basics of javascript programming language.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.