hello;
can U plz explain this Q for me, i do not know how to solve it ?
Rational fractions are of the form a / b, where a and b are integers and b ≠ 0. In this assignment, by "fractions" we mean rational fractions. Suppose a / b and c / d are fractions. Arithmetic operations on fractions are defined by the following rules:
a/b + c/d = (ad + bc)/bd
a/b - c/d = (ad - bc)/bd
Fractions are compared as follows: a / b op c / d if ad op cd, where op is any of the relational operations. For example, a/b < c/d if ad<bc.
Design a class—say, fractionType—that performs the arithmetic and relational operations +, -, > and < on fractions. Overload the arithmetic and relational operators so that the appropriate symbols can be used to perform the operation.
Write a C++ program that, using the class fractionType, performs operations on fractions.