السلام عليكم ..
كيف الحااااااااااااال ؟إن شاء الله بخير على العموم عندي سؤال اريد حله لأنني مبتدئه في الجافا و أجد صعوبه في حله فأود من الكل المساعده وهذا هو السؤال
Rational fractions are of the form a / b, where a and b are integers and b=! 0
In this exercise, by fractions" we mean rational fractions. Suppose a / b and c /d are fractions. Arithmetic operations on fractions are defined by the following rules:
a / b+ c / d =(ad+ bc)/ bd.
a / b - c / d =(ad - bc)/ bd.
a / b x c / d = ac / bd .
a / b ) / ( c / d )=ad / bc ,where c/d !=0
Fractions are compared as follows: a / b op c / d if ad op bc, where op is any of the relational operations. For example, a / b < c / d if ad < bc.
Design the Class Fraction that can be used to manipulate fractions in a program.
Among others, the Class Fraction must include methods to add, subtract, multiply, and divide fraction. When you add, subtract, multiply, or divide fractions, your answer need not be in the lowest terms. Also, override the method (toString)
So that the fractions can be output using the output statement.
Write a Java program that, using the class Fraction performs operations on fractions