Showing posts with label Java Examples. Show all posts
Showing posts with label Java Examples. Show all posts

Sunday, February 16, 2014

Java Fraction Calculator Example

This example show you how to implement a simple calculator which can calculate fractions. Some best practices have been used. This example also will be helpful with University of Westminster / Informatics Institute of Technology - BEng(Hons) in Software Engineering 1st year modules.

Validated For :

  • Non numeric inputs
  • x/0 type fractions
  • 0/0 and 0/y type fractions
  • x/1 and x/x type fractions
  • -x/-y and x/-y  type fractions

IDE used : Eclipse (Kepler)

Download source from GitHub (Eclipse project)


Join code review
         http://codereview.stackexchange.com/questions/43084/java-fraction-calculator