Please Java Assignment 91 95 Points Write Fraction Class Whose Objects Represent Fractions Q37058465

**PLEASE DO IT IN JAVA**

Assignment 9.1 [95 points]

Write a Fraction class whose objects will represent fractions.You should provide the following class methods:

  1. Two constructors, a parameter-less constructor that assigns thevalue 0 to the Fraction, and a constructor that takes twoparameters. The first parameter will represent the initialnumerator of the Fraction, and the second parameter will representthe initial denominator of the Fraction.

  2. Arithmetic operations that add, subtract, multiply, and divideFractions. These should be implemented as value returning methodsthat return a Fraction object. They should be named addedTo,subtract, multipliedBy, and dividedBy.

  3. A boolean operation named isEqualTo that compares two Fractionobjects for equality.

  4. An output operation named

    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.