星期一, 4月 13, 2009

lab Fraction equality test

Write a program to implement a method that can check whether 2 fractions are equal. You will implement a class called Fraction consisting of a numerator and a denominator. The equality test of 2 fractions should return a boolean value.

Use the following as the tests.

* 1/2, 2/4
* 5/6, 6/7


Hints:
Fraction f1, f2;
f1.equals(f2);

29 則留言:

匿名 提到...

資工四乙 9427203 葉家豪

Unknown 提到...

9427208 資工四乙 黃崇傑

匿名 提到...

電子四丙梁翰剛

test 提到...

電子三乙 9526215 吳國志

迪西 提到...

9526336 電子三丙 江季軒

匿名 提到...

s9626237 電子二乙 艾禮之

匿名 提到...

電子二乙9626215廖姿雅

匿名 提到...

電子2甲9626104陳彥瑋

匿名 提到...

9528231 吳舒旻 電機三乙

匿名 提到...

9626315 電子二丙 陳子傑

匿名 提到...

電子三乙 王介君 9526203

匿名 提到...

電子二甲 9626126 王柏仁

匿名 提到...

9626320電子二丙林共兼

Edmund 提到...

電子三丙 9526342 李忠展

匿名 提到...

電子二丙 9626365 龔伯勤

匿名 提到...

9626310 電子二丙 藍威長

匿名 提到...

9626250 電子二乙 施博鐘

匿名 提到...

黃士誠 電子二丙 9626325

匿名 提到...

電子二丙 9626351 許哲銘

匿名 提到...

電子三甲 9526118 陳詠敬

匿名 提到...

電子二乙 9626203 鄭曜鐘

匿名 提到...

電子三甲 9526136 吳哲維

匿名 提到...

電子二甲 9626101 沈建志

匿名 提到...

9426353 電子四丙 吳冠廷

匿名 提到...

電子二丙 9626302 王竣右

匿名 提到...

電子二丙 9626366 楊景文

匿名 提到...

電子三甲 9526133 彭榜揚

匿名 提到...

電子三乙 9526242 陳柏瑞

Ilikepie 提到...

電子三甲 9526155 胡國治