Lab 5
Requirements
Write a class that represents a fraction number like 2/3.
The functions below have to be implemented for this class:
-
Default ctor
-
Ctor takes two integers as parameters
-
Copy ctor
-
Arithmetical operators:
+ - * / -
Relational operators:
< <= == != >= > -
Typecast to double
-
To string
-
Inserter and extractor for streams
-
Conversion from a finite decimal string like:
1.414
Evaluation standard
-
C++ code quality (clean, compact, and reasonable)
-
Comments quality
Files to submit
Please prepare a .zip package including all the source files (including the Fraction class and some typical usages for tests)