Author | Message |
---|---|
ifiguer
Posts: 27
|
Posted 17:15 Apr 08, 2017 |
Hey! I just had a question for anyone who wants to help. My code for the add method has about 155 lines of code just to perform an add operation. Is this OK? Or should I create methods that simplify the add method? So far, I find it difficult to have another solution for this. Thanks for the help in advance! |
dvictor4
Posts: 34
|
Posted 17:21 Apr 08, 2017 |
Is it long because you are covering all the cases for addition? |
ifiguer
Posts: 27
|
Posted 17:24 Apr 08, 2017 |
It covers everything for fraction addition. Negatives, common denominators, and simplification. |
jhurley
Posts: 207
|
Posted 17:55 Apr 08, 2017 |
One method is OK, but think out whether there are ways to make it simpler |