Question: Redesign and implement the Rational class in Listing 13.13 using BigInteger for the numerator and denominator. Write a test program that prompts the user to
Redesign and implement the Rational class in Listing 13.13 using BigInteger for the numerator and denominator. Write a test program that prompts the user to enter two rational numbers and display the results as shown in the following sample run:

Enter the first rational number: 3 454 Enter Enter the second rational number: 7 2389 -Enter 3/454 + 7/2389 = 10345/ 1084606 31454 7/2389 = 3989/1084606 31454 * 7/2389 = 21/1084606 3/454 / 7/2389 = 7167/3178 7/2389 is 0.0029300962745918793
Step by Step Solution
3.41 Rating (170 Votes )
There are 3 Steps involved in it
import javamath import javautilScanner public class Exercise1315 public static void mainString args ... View full answer
Get step-by-step solutions from verified subject matter experts
