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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education