Very new to Java. Would appreciate some help!
Hey guys! This assignment is due tonight and I have been struggling with it for a while now. Can anyone help? Thanks! :(y):
Design a class named LinearEquation for a 2 X 2 system of linear equations:
ax + by = e x = (ed – bf)/(ad – bc)
cx + dy = f y = (af – ec)/(ad – bc)
The class contains:
Private data fields a, b, c, d, e, f.
A constructor with the arguments for a, b, c, d, e, f.
Six get methods for a, b, c, d, e, and f.
A method named isSolvable() that returns true if ad – bc is not 0.
Methods getX() and getY() that retrun the solution for the equation.
Re: Very new to Java. Would appreciate some help!
Do you have any specific questions about your assignment?
Please post your code and any questions about problems you are having.
What have you tried? - Matt Gemmell