Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 24 Jul 2017 My Price 7.00

Modify the RationalNumber class so that it implements the Comparable interface

Modify the RationalNumber class so that it implements the Comparable interface. To perform the comparison, compute an equivalent floating point value from the numerator and denominator for both RationalNumber objects, then compare them using a tolerance value of 0.0001. Write a main driver to test your modifications.

 

Answers

(8)
Status NEW Posted 24 Jul 2017 04:07 PM My Price 7.00

-----------

Attachments

file 1500914105-2293047_1_636364190131143885_my-document-1.docx preview (207 words )
p-----------ubl-----------ic -----------cla-----------ss -----------MyF-----------unc----------- {-----------pri-----------vat-----------e i-----------nt -----------Nr,----------- Dr-----------;pu-----------bli-----------c M-----------yFu-----------nc -----------(in-----------t n-----------ume-----------r, -----------int----------- de-----------nom-----------){i-----------f (-----------den-----------om -----------== -----------0)d-----------eno-----------m =----------- 1;-----------// -----------Mak-----------e t-----------he -----------Nr -----------&qu-----------ot;-----------sto-----------re&-----------quo-----------t; -----------the----------- si-----------gni-----------f (-----------den-----------om -----------&am-----------p;l-----------t; -----------0){-----------num-----------er -----------= n-----------ume-----------r *----------- -1-----------;de-----------nom----------- = -----------den-----------om -----------* ------------1;}-----------Nr -----------= n-----------ume-----------r;D-----------r =----------- de-----------nom-----------;re-----------duc-----------e()-----------;}p-----------ubl-----------ic -----------int----------- ge-----------tNr----------- ()-----------{re-----------tur-----------n N-----------r;}-----------pub-----------lic----------- in-----------t g-----------etD-----------r (-----------){r-----------etu-----------rn -----------Dr;-----------}pu-----------bli-----------c M-----------yFu-----------nc -----------rec-----------ipr-----------oca-----------l (-----------){r-----------etu-----------rn -----------new----------- My-----------Fun-----------c (-----------Dr,----------- Nr-----------);}-----------pub-----------lic----------- My-----------Fun-----------c a-----------dd -----------(My-----------Fun-----------c o-----------p2)-----------{in-----------t c-----------omm-----------onD-----------r =----------- Dr----------- * -----------op2-----------.ge-----------tDr-----------();-----------int----------- Nr-----------1 =-----------
Not Rated(0)