Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ please! Use 2-dimensional arrays OR matrices.. extra points if you implement both (2 different .cpp). Pretty simple.. C++ please! Thank you Questioni For

In C++ please!

image text in transcribed

image text in transcribed

image text in transcribed

Use 2-dimensional arrays OR matrices.. extra points if you implement both (2 different .cpp). Pretty simple.. C++ please! Thank you

Questioni For this assignment you have to perform Matrix operations (Addition, Subtraction, Multiplication, Determinant, Transpose and Inverse). For each of the above mentioned operation you have to make a function in addition to two other functions for 'Inputting' and 'Displaying' the Matrices in Row-Order Format. (In total there will be 8 functions6 for the operations and 2 functions for inputting and displaying the data.) For Addition, Subtraction, Multiplication, Transpose it can be 2D array of any size(say Max dimension for both row and Column be 10). So, to prevent users from having to entering 100 (for a 1OX10 matrix) elements every time (even for a smaller matrix), you should ask for the number of rows and columns in the matrix before the user would input the values of the matrix elements. Basically your code should be generic. The point is user should be free to enter 2X3, or..4X2, or 9X9 Matrix. If the operation is not supported (ex. adding two arrays of different dimensions) just print out that the operation is not supported and return to the menu. For Determinant and Inverse operation we are giving you the relaxation to choose fixed matrix size of 3X3. (3 rows and 3 column). You do not need to calculate the determinate and inverse operations for any matrix that is not 3x3 (the function can just check to see if the matrix not 3x3. If it is, just print out that the operation is not supported) . You have to write the above code using both Matrices and Vectors. Submit two cpp files one using Matrices and one using Vectors. If anyone submits only one of the cpp file half points will be given

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions