Simple fraction calculator that I should write on C# for my education.
Change log:
25-03-2012:
-
found a bug
-
Added todo list
The task is to implement a fraction calculator API such that the following can be achieved by a client using the API:
- All fractions are represented in the form of Numerator and Denominator, including results.
- Addition
- Subtraction
- Multiplication
- Division
- It is expected to throw correct exceptions.
Implement the API in a Visual Studio C# project and make it compile. If possible, make sure that at least part of the API is covered with unit tests.