Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I dont know where i made the mistake :(( I keep getting the same value for the first fraction even after I multiplied. It is

I dont know where i made the mistake :((
I keep getting the same value for the first fraction even after I multiplied. It is weire because i get the correct multiplied value but that number doesnt get replaced to my first fraction value
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
RUN CODE GRADING EXERCISE DOCS HELP MORE ithis exercise, you must take your Fraction class from earlier and extend t by adding a few handy methods YOUR JOB Implement the following methods in the Fraction class public void add(Fraction other) public void subtract(Fraction other) public void multiply(Fraction othen) public int getNumerator() public int getDenominator) public void setNumerator(int x) public void setDenominator(int x) public String tostring() Use the FractionTester file to test as you go along. HINTS Note that public void add(Fraction other) public/ void subtract (Fraction other) publsc/void multiply(Fraction other) are vosd methods. They do not return anything. These methods should not create a new Fraction and return it Instead these methods should modify the instance variables to be added subtracted. or multiplied by the Fraction other 10:06 AME

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

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions