Question: Make a program ( visual Studio/ c++ project/ in a form of .C) that takes in matrices A, B and X. see the image below.

Make a program ( visual Studio/ c++ project/ in a form of .C) that takes in matrices A, B and X. see the image below.

and find the solution for X=inv(A) * B using CRAMER'S RULE

1. you have to take in matrices A B and X in the main function(see the image below)

The size of Matrix A may vary from 2x2 to 5x5 and so does size of B and X

instead of inputting the elements of A B and X

the inputs are taken as the equations in the form of STRINGS

the elements of A B and X are extracted from the input strings

in this case the characters input for each element of A and B are in the from of sTTTT.VVV

where, s is - for negative number and + for positive number

T are digits before decimal

V are digits after decimal

the equation entered MUST be like

+1023.557a -22.005A +2.0M = 0.004

2. A and B can be float/double numbers

3. X is a vector with all inputs as characters

4. Use Cramer's rule to find the solution.

make a separate function for finding determinant of the matrix.

check if det(A)==0 to determine the solution is possible or not.

display your results for the characters in vector X

 Make a program ( visual Studio/ c++ project/ in a form

roject BASIC REQUIREMENTS 1 you have to take itn 4. Use Cramers nule to find the solution make a separate tunction for finding determinant of the matrix. check if det(A)-0 to determine the soltion is possible or not. 1 instead of inputting the elements of A B and X the inputs are taken as the equations in the form of STRINGS in this case the characters inpus for each element of A and B are in the from of sTTTT VVV T are digts betore decimal V are dgts aner decimal the equation entered MUST be like +1023557a-22.005A +2.0M 0.004

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!