Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 578 Bytes

README.mdown

File metadata and controls

15 lines (12 loc) · 578 Bytes

Rational - a Java implementation of Rational numbers

A simple assignment to implement the basic functionality of Rational Numbers:

  • Add
  • Subtract
  • Mutlipl
  • Divide
  • Reduce to lowest form (using Euclidean algorithm)

Source Files:

  • Rational.java: basic Rational functionality described above
  • RationalTest.java: JUnit test class to exercise functionality to verify accuracy
  • RationalTestRun.java: test class to exercise functionality in main() for those without JUnit
  • MathHelper.java: basic helper functions for determining LCM and GCD for use in reducing fractions