Write a program that prompts the user to enter a decimal number and displays the number in a fraction. Hint: read the decimal number as a string, extract the integer part and fractional part from the string, and use the BigInteger implementation of the Rational class in Exercise to obtain a rational number for the decimal number. Here are some sample runs:
Redesign and implement the Rational class in Listing using BigInteger for the numerator and denominator.
Listing



We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.