Design, debug and test a Java program that performs arithmetic operations on fractions. Fractions are of the
Fantastic news! We've Found the answer you've been seeking!
Question:
Design, debug and test a Java program that performs arithmetic operations on fractions. Fractions are of the form a/b, where numerator a and denominator b are integers. For this assignment, it is assumed that both a>0 and b>0, and are represented only by a single digit value [1...9].
CODING REQUIREMENTS
- Your program shall be well structured and designed using the concept of object oriented programming: follow the fundamental principles of the OOD when you define classes and relationship between them
- Your program shall use command line arguments to get two fractions
For example:
java ArithmeticWithFractions 2/5 1/7
- You can presume that the number of command line parameters and their values are always entered properly according to the assignment specification.
- Your program shall include meaningful comments and follow commonly accepted conventions regarding names of variables.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: