hey I was wondering if any of you had an idea for this program I need to write for extra credit in my class. It involves using a rational class which is what Im having trouble writing, I understand if no one wants to take a shot at it, any feedback would be helpful.
Complete an implementation of the Rational class. Your class must have three private data members to represent rationale numbers of the form b a + --- c where a, b and c are unsigned integers, and the relation b < c is always maintained.
Also, c may be constrained to be between 1 and 32, inclusive.
Your class should implement the following:
initialization constructor with three unsigned ints (a,b,c)
initialization constructor with a signle unsigned int (a)
initialization constructor with a single double (x) // x should be converted into the nearest rational number under the constraints for b and c defined above.