Results 1 to 2 of 2

Thread: class help

  1. #1
    lafamosa is offline Member
    Join Date
    Dec 2007
    Posts
    1
    Rep Power
    0

    Question class help

    “a class holds integers that can extends to 40 digit and its methods
    to order it according to Big number class”
    how can i continue below is given program’s skeleton

    XML Code:
    public class BigNumber {
    
     //the array that holds number
     private short[] number; 
    
    //constructor methods
     public BigNumber()
     public BigNumber(short[] number)
    
     //the methods to enter class’hold number 
    // and to show it
       public void enter(String number)
       public String quit() 
    
    //Arithmetic transactions.if the result of transaction
    //over 40 digit it is enough to hold it can.Remnant method is used to find the number which remnant refer to dividing transaction 
     public BigNumber add(BigNumber added)
     public BigNumber subtract(BigNumber result)
     public BigNumber multiple(BigNumber added)
     public BigNumber divide(BigNumber result)
     public BigNumber remnant(BigNumber added)
    
    //Logical operations. Compare two numbers to test
     // relation to each others as big-little-equal // 
    public boolean equal(BigNumber number) 
    public boolean big(BigNumber number) 
    public boolean little(BigNumber number) 
    public boolean bigequal(BigNumber number) 
    public boolean littleequal(BigNumber number)
     }

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    9

    Default

    Do as your instructor told you and complete his/her skeleton that s/he gave you.

Similar Threads

  1. Replies: 0
    Last Post: 04-02-2008, 08:04 AM
  2. Replies: 0
    Last Post: 02-17-2008, 10:03 AM
  3. Replies: 0
    Last Post: 02-17-2008, 10:01 AM
  4. Inner class accessing outer class
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-17-2008, 09:59 AM
  5. Replies: 5
    Last Post: 01-03-2008, 08:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •