Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make a program in Visual studio ( C++ project / the form is .C) that takes in matrices A, B and X. and find the

Make a program in Visual studio ( C++ project / the form is .C) that takes in matrices A, B and X.

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

1. you have to take in matrices A B and X in the main function

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

image text in transcribed

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 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

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions