Results 1 to 2 of 2
- 04-03-2013, 03:19 AM #1Member
- Join Date
- Apr 2013
- Rep Power
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!
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.
- 04-03-2013, 04:00 AM #2
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 GemmellIf you don't understand my response, don't ignore it, ask a question.