The equals method modification should loop repeatedly until


In the attached METHOD "equals", that takes as input another Fraction and returns true if the two fractions are identical and false if they are not, this method reduces the fraction to its lowest terms; that is, if one fraction is 20/60 and the other is 1/3, then the method returns true.
Embeded in the class is a TEST PROGRAM that allows a user to create a fraction.

REQUIREMENT:

1. Use loops in the "equals" method to reduce the fractions to their lowest terms.

2. The equals method modification should loop repeatedly until the user decides to quit. Inside the body of the loop, the programshould allow the user to enter a target fraction into an anonymous object and learn whether the fractions are identical.

Attachment:- MeritBadgeInventory.zip

Solution Preview :

Prepared by a verified Expert
JAVA Programming: The equals method modification should loop repeatedly until
Reference No:- TGS01250297

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)