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);
電子二乙 9526243 吳聖源
回覆刪除電子二乙9526214許祐齊
回覆刪除電子二乙 9526257 黃健暐
回覆刪除電子二乙9526224范丞儀
回覆刪除電子二丙 9526362 馮文甫
回覆刪除電子之夜 9526238 王詩集
回覆刪除電子四乙9326263 葉軒瑞
回覆刪除電子四丙 方彥順 9326351
回覆刪除資工二甲9527118張哲銘
回覆刪除電子二丙 9526319 鍾宜展
回覆刪除電子二乙 9526228 林秉祥
回覆刪除資工二甲 9527158 張懷仁
回覆刪除醫工四甲9325146陳品汶
回覆刪除電子二丙9526358張譽融
回覆刪除電子二丙 9526353 沈韋豪
回覆刪除作者已經移除這則留言。
回覆刪除電子二丙9526335陳綉青
回覆刪除電子二乙9526208羅沛緹
回覆刪除資工二甲 9527131 施宇涵
回覆刪除電子二丙9526349李昌訓
回覆刪除電子二甲9526150張凱鈞
回覆刪除