Question: For SDEV220: Write this code in PYTHON : (Algebra: solve 2 2 linear equations) You can use Cramers rule to solve the following 2 2
For SDEV220: Write this code in PYTHON
: (Algebra: solve 2 2 linear equations) You can use Cramers rule to solve the following 2 2 system of linear equation:
Cramer's rule:
1a) a*x + b*y = e
1b) c*x + d*y = f
2a) X = (e*d b*f) / (a*d b*c)
2b) Y = (a*f e*c) / (a*d b*c)
Write a program that prompts the user to enter a , b , c , d , e , and f and display the result. If ad bc is 0 , report that The equation has no solution.
If X-Y=0, print out the input numbers used for a-f
***Answer must be code written in python. Not Java or C++ or anything else, only Python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
