Question: . Use your Rational class to write a program that investigates Egyptian fractions. An Egyptian fraction is formed as a sum of unit fractions (the
. Use your Rational class to write a program that investigates Egyptian fractions. An Egyptian fraction is formed as a sum of unit fractions (the numerator is 1) having unique denominators. For example can be represented as the sum: + l + 2 ' Your program should allow a user to enter an arbitrary fraction and then print out an equivalent Egyptian fraction. If necessary, do a bit of research to come up with an algorithm for the conversion.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
