import myIO.*; public class FractionApp { public static void main(String[] args) { // Read two integers // Build a fraction int a = IO.getInt("Enter numerator"); int b = IO.getInt("Enter denominator"); Fraction f1 = new Fraction(a, b); // Read two more integers // Build a second fraction int c = IO.getInt("Enter num"); int d = IO.getInt("Enter denom"); Fraction f2 = new Fraction(c, d); // Find the product of first two fractions Fraction f3 = f1.multiply(f2); // Display the fraction which is the product IO.displayResult(f3.toString()); IO.appendOutput("first fraction is " + f1.toString()); IO.appendOutput ("second fraction is " + f2.toString()); IO.appendOutput ("product is " + f3.toString()); IO.displayOutput (); System.exit(0); } }