Question: 5. Develop a LinearEquation class for a 2* 2 system of linear equations: ax + by = e cx + dy = f x =

5. Develop a LinearEquation class for a 2* 2 system of linear equations: ax + by = e cx + dy = f x = (ed - bf)/(ad - bc) y = (af-ec)/(ad - bc) Supply appropriate get and set methods along with the following: - isSolvable() - returns whether the equations are solvable(ad-bc is not equal to 0) or not (reports no solution for equations). - getX() and getY() - returns solutions for the equations. Create TestLinearEquation class to test LinearEquation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
