Question: Pretty much need help coming up with methods for what they are asking. If you can please explain with detail thank you! Also this is

Pretty much need help coming up with methods for what they are asking. If you can please explain with detail thank you! Also this is in java. public class SimpleFraction implements SimpleFractionInterface, Comparable { // integer numerator and denominator private int num; private int den; public SimpleFraction() { // implement this method! // set fraction to default = 0/1 } // end default constructor public SimpleFraction(int num, int den) { // implement this method! } // end constructor public void setSimpleFraction(int num, int den) { // implement this method! // return SimpleFractionException if initialDenominator is 0 } // end setSimpleFraction public SimpleFractionInterface simplifySimpleFraction() { // implement this method! // return this fraction return null; } public double toDouble() { // return double floating point value // implement this method! return 0.0; } // end toDouble public SimpleFractionInterface add(SimpleFractionInterface secondFraction) { // implement this method! // use formula: a/b + c/d is (ad + cb)/(bd) // Note: do not reduce the result return null; } // end add public SimpleFractionInterface subtract(SimpleFractionInterface secondFraction) { // implement this method! // use formula: a/b - c/d is (ad - cb)/(bd) // Note: do not reduce the result return null; } // end subtract public SimpleFractionInterface multiply(SimpleFractionInterface secondFraction) { // implement this method! // use formula: a/b * c/d is (ac)/(bd) // Note: do not reduce the result return null; } // end multiply public SimpleFractionInterface divide(SimpleFractionInterface secondFraction) { // implement this method! // return SimpleFractionException if secondFraction is 0 // use formula: a/b / c/d is (ad)/(bc) // Note: do not reduce the result return null; } // end divide public boolean equals(Object other) { // implement this method! return false; } // end equals public int compareTo(SimpleFraction other) { // implement this method! return 0; } // end compareTo 

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!