Your task is to improve program 2 (which will be provided upon selecting you to complete this project) and make it bigger and better in the following ways. First, a fraction will now have a sign, a whole part, a numerator and a denominator.
****You must use polymorphism to eliminate redundant code in main, and all appropriate operators should be overloaded for the Fraction and Problem classes.*****
A valid sign will be ‘+’ or ‘-‘, a valid whole part or numerator will be any non-negative integer value, and a valid denominator will be any positive integer value. All parts of the fraction (sign, whole, numerator, and denominator) must be entered on the SAME line. You are not able to ask for the numerator and the denominator, etc, separately
The main program should have the following options:
1. Enter Left Fraction
2. Enter Right Fraction
7. Show all Relationships (between left and right: ==, >, <, !=, >=, <=)