Write some Java Software

Ukończone Opublikowano 7 lat temu Płatność przy odbiorze
Ukończone Płatność przy odbiorze

Part 1: Create an interface named Fraction. Each fraction has a numerator and a denominator that are both integers. The Interface should have a getter and setter for each.

The Fraction interface should have methods that allow a fraction to add, subtract, multiply, and divide itself with another fraction object. These methods should have a fraction as a parameter and should return the result of the operation as a fraction.

There should be a method named reciprocal() that returns the reciprocal of the receiving fraction.

There should be a method that compares a fraction with another for equality.

There should be a method that returns a String version of the fraction. Consider naming this method toString.

Part 2: Write a class named MyFraction that implements the Fraction interface. It would be good practice to give your MyFraction class a constructor that accepts two parameters, the numerator and denominator. You might also consider including code that will simplify fraction objects. For instance, 8/16 could automatically become 1/2. and -1/-3 could become 1/3.

**Would have to be completed with 12 hours**

Java PHP Architektura oprogramowania

Numer ID Projektu: #11352214

O projekcie

10 ofert Zdalny projekt Aktywny 7 lat temu

Przyznany użytkownikowi:

it2051229

Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can start and finish within 12 hours. Thanks.

$30 USD w ciągu 0 dni
(1047 ocen)
7.5

10 freelancerów złożyło ofertę za $26 w tym projekcie

lynxr

I can help you

$25 USD w ciągu 1 dnia
(4 Oceny)
3.0
sbhattarai688

I am a student and I just started working with java . I have worked in lots of logic like this before . I am currently working in Spring MVC Framework with hibernate .

$25 USD w ciągu 1 dnia
(0 Oceny)
0.0
jramzan

Hey I can do that if you are serious about that please give me your kind response as early as possible. Thanks! Regards Jahanzaib

$30 USD w ciągu 1 dnia
(0 Oceny)
0.0
altabhossen01

Hello I am a professional programmer on PHP+MySQL+WordPress. Over the last 5 years, I have experience in web development programing. I have excellent experience in the following area - Designing, building and mainta Więcej

$25 USD w ciągu 1 dnia
(0 Oceny)
0.0
technosense2

Dear Sir, Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have checked your requir Więcej

$25 USD w ciągu 1 dnia
(0 Oceny)
0.0