from the user. Also define the Scalar multiply, Matrix multiply, Matrix transpose, Matrix adjoint virtual functions for a 3x3 matrix. The main program must be menu driven with the options for user to select from the list o operations he can perform on a matrix and then display the results accordingly e.g Please select the matríx you want to enter: 1. 2x2 Matrix 2. 3x3 Matrix Your choice please: 1 Enter Matrix: 1 2 3 4 Select the one of the following operation: 1. Scalar multíply 2. Matrix multíply 3. Matrix transpose 4. Matrix adjoint Your choice please: 1 Enter scalar: 3 Resulting Matrix: 3 6 12

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

this question is related to subject object oriented programming in c++ language. 

solve given question in dev c++ software. kindly send answer quickely.Thanks

 

matrix from the user. Also define the Scalar multiply, Matrix multiply, Matrix transpose,
Matrix adjoint virtual functions for a 3x3 matrix.
The main program must be menu driven with the options for user to select from the list of
operations he can perform on a matrix and then display the results accordingly e.g
Please select the matrix you ant to enter:
1. 2x2 Matrix
2. 3x3 Matrix
Your choice please: 1
Enter Matrix: 1 2
3 4
Select the one of the following operation:
1. Scalar multíply
2. Matrix mnultíply
3. Matriz transpose
4. Matriz adjoint
Your choice please: 1
Enter scalar: 3
Resulting Matrix: 3
9.
12
Transcribed Image Text:matrix from the user. Also define the Scalar multiply, Matrix multiply, Matrix transpose, Matrix adjoint virtual functions for a 3x3 matrix. The main program must be menu driven with the options for user to select from the list of operations he can perform on a matrix and then display the results accordingly e.g Please select the matrix you ant to enter: 1. 2x2 Matrix 2. 3x3 Matrix Your choice please: 1 Enter Matrix: 1 2 3 4 Select the one of the following operation: 1. Scalar multíply 2. Matrix mnultíply 3. Matriz transpose 4. Matriz adjoint Your choice please: 1 Enter scalar: 3 Resulting Matrix: 3 9. 12
Create a base class Mat2Calculator for a 2x2 matrix which contains a 2D array as a member
variable. Define an argument constructor for the class to initialize the matrix. You can also
make a function to get values from user. Define following virtual functions to perform
different operations on a matrix:
1.
Scalar multiply
Matrix multiply
Matrix transpose
Matrix adjoint
2.
3.
Now derive a class Mat3Calculator to perform operations on a 3x3 matrix. This class will
contain a 2D array as a member variable. Make a function to get values for elements of a
4.
Transcribed Image Text:Create a base class Mat2Calculator for a 2x2 matrix which contains a 2D array as a member variable. Define an argument constructor for the class to initialize the matrix. You can also make a function to get values from user. Define following virtual functions to perform different operations on a matrix: 1. Scalar multiply Matrix multiply Matrix transpose Matrix adjoint 2. 3. Now derive a class Mat3Calculator to perform operations on a 3x3 matrix. This class will contain a 2D array as a member variable. Make a function to get values for elements of a 4.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Structured English
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning