Project 4: Elimination Method

Puzzle:  I am four times older than my daughter.  In five years, I will be three times older than her.  How old am I and how old is she?

Equations:

4D= M

3(D+5) = M or 3D + 15 = M

We can set up a system of equations to solve for these unknowns.

4D - M = 0

3D - M = 15

Read below how you can solve a system of equations using the elimiation method.  Once you understand it, you can come back to this problem and find our ages :)

Project 4:  Variables 'a', 'b', 'c', 'd', 'e', and 'f' have been initialized as the coefficients shown in the system of equations above.  

Task:  initialize the values of 'x' and 'y' that represent the solution to the system of equations.

**If your code works for 5 test cases in a row, you can enter your e-mail address.

Universal Computational Math Methods:

pow(5,2) returns 25.0

abs(-3.0) returns 3

sqrt(49.0) returns 7.0