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
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.
Step by Step Solution
3.52 Rating (145 Votes )
There are 3 Steps involved in it
To design debug and test a Java program that performs arithmetic operations on fractions using objectoriented programming OOP the following steps can be followed Step 1 Define the Fraction Class Creat... View full answer
Get step-by-step solutions from verified subject matter experts
