Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me in this quesion , i just want to modify the code to make it correct using the ( Eclipse ) (*Fraction*): *Fractionlmol*:

please help me in this quesion , i just want to modify the code to make it correct using the ( Eclipse )
(*Fraction*):
image text in transcribed
*Fractionlmol*:
image text in transcribed
image text in transcribed
*FractionTest*:
image text in transcribed
image text in transcribed
image text in transcribed
Fraction.java Fractionlmpl.java D FractionTes 123456789packagefractionlab;publicinterfaceFraction{publicintnumerator();publicintdenominator();publicFractionadd(Fractionf);publicFractionsub(Fractionf);publicFractionmul(Fractionf);publicFractiondiv(Fractionf); Fraction.java Dractionlmpl.java D FractionTest.java I/@0verride public Fraction sub(Fraction f ) \{ II TODO Auto-generated method stub int return null; l/@0verride II TODO Auto-generated method stub return null; \} I/@verride public Fraction div(Fraction f ) f I/ TODo Auto-generated method stub return null; 3 public String tostring() \{ return string. format("\%d / \%d", this.num, this.den); 3 Fractionjava Dractionimpljava DractionTest.java A fraction is the quotient of two numbers a/b where a and b are both integers and b=0. a is called the numerator and b the denominator. Here are some operations on fractions: As shown in the examples for multiplication and subtraction, one usually reduces the answer to its simplest form. Thus, 1/24/5=2/5 rather than the 4/10 that results from merely multiplying across. When applying these operations we want to leave the two operands unchanged. For example, given fractions A and B,AB should create a new fraction and not change A or B. Q: Develop an Abstract Data Type for the Fractions. Download and import in eclipse the startup code (Lab_1.zip. Complete the TODO items in the project. Welcome to Fraction Application Press 1 to display fraction addition Press 2 to display fraction subtraction Press 3 to display fraction multiplication Press 4 to display fraction division Press 0 to exit Option > If Result of Addition =13/10 Thank you! Welcome to Fraction Application Press I to display fraction addition Press 2 to display fraction subtraction Press 3 to display fraction multiplication Press 4 to display fraction division Press 0 to exit Option >2 Result of subtraction =3/10 Thank youl Welcome to Fraction Application Press 1 to display fraction addition Press 2 to display fraction subtraction press 3 to display fraction multiplication Press 4 to display fraction division Press 0 to exit option > Result of Multiplication =4/10 Thank you! Welcome to Eraction Application Press 1 to display fraction addition Press 2 to display fraction subtraction Press 3 to display fraction multiplication press 4 to display fraction division press 0 to exit Option > 4 Result of Division =5/8 Thank you! Welcome to Eraction Application Press 1 to display fraction addition Press 2 to display fraction subtraction Press 3 to display fraction multiplication Press 4 to display fraction division Press 0 to exit Option > 8 Error! Thank you! Welcome to Eraction Application Press 1 to display fraction addition Press 2 to display fraction subtraction Press 3 to display fraction multiplication Press 4 to display fraction division Press 0 to exit Option >0 Thank you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

If T: C2 C2 satisfies and find 2 -G])- 43

Answered: 1 week ago

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago