Dehmukh

I would be happy to check your own PROGRAM for any bugs

marcos

On Thu, Sep 18, 2008 at 5:28 PM, Deshmukh Srikanth
<[EMAIL PROTECTED]>wrote:

>
>
> --- On *Fri, 9/19/08, Deshmukh Srikanth <[EMAIL PROTECTED]>* wrote:
>
> From: Deshmukh Srikanth <[EMAIL PROTECTED]>
> Subject: java prog
> To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
> [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
> [EMAIL PROTECTED]
> Date: Friday, September 19, 2008, 5:56 AM
>
> can anyone plz write the program for this...plzzzz...
>
>
>
>
> DUE DATE: 11:59 PM, Tuesday, September 23rd, 2008
>
>
>
> NOTE: This programming exercise is worth 72 points. Programs
>
> received after this date will be penalized.
>
>
>
> DIRECTIONS: For this assignment, create a Fraction class
>
> with the following characteristics. Int data fields are
>
> numerator, denominator, and fractionCount (static). There is only
>
> one constructor which accepts as input (numerator, denominator).
>
>
>
> Methods:
>
>
>
> Assume fraction objects f1, f2. Note that methods
>
> add, subtract, times, and dividedBy MODIFY f1.
>
>
>
>
>
> f1.add(f2)         - compute f1 = f1 + f2
>
> f1.subtract(f2)    - compute f1 = f1 - f2
>
> f1.times(f2)       - compute f1 = f1 * f2
>
> f1.dividedBy(f2)   - compute f1 = f1 / f2
>
> f1.getNum()        - get the numerator field
>
> f1.getDen()        - get denominator field
>
> f1.display()       - display fraction as num/den
>
>                         (possibly improper)
>
> f1.displayLT()     - display fraction in lowest terms as num/den
>
>                         (possibly improper)
>
> f1.displayP()     - display fraction as proper fraction
>
>                         (with whole number part if nonzero).
>
> f1.displayPLT()   - display fraction in lowest terms as proper fraction
>
>                         (with whole number part if nonzero).
>
>
>
> Fraction.count()  - a static method which displays a count of the total
>
>                     number of fractions created.
>
>
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to