Question: Given a 2x2 system of linear equations: ax + by = e and cx + dy = f ...one can use Cramers rule to solve

Given a 2x2 system of linear equations: ax + by = e and cx + dy = f

...one can use Cramers rule to solve for x and y:

x = edbf / adbc and y = afec / adbc

Write a Java program that:

Reads 6 doubles off the console (use the Scanner class and nextDouble()) and put them in variables a, b, c, d, e, and f (IN THAT ORDER).*Do NOT use a prompt message for this!

Solve the equations and print the value for x and y.

The format of the printout should be EXACTLY like this:

x =

y =

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!