Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: please help me .

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default please help me .

    i was giving a a question .
    but i dont understand even how to start .

    this is my question, can please give me some hints to start it .

    Thunder Bookshop Sdn Bhd has requested that you enhance the application to enable the company to keep track of items of various categories such as: books, CDs and stationeries.

    The information to be stored for the various categories of items are as follows:
    Book
    o Item Code
    o Book title
    o Author
    o Publisher
    o ISBN-10
    o ISBN-13
    o Quantity on hand
    o Cost price
    o Selling Price
    o Fiction (eg. Science, Magazine, Children ...)
    o Status (eg. available or unavailable)
    o Discount (5%, 10%, 20%, )

    CD
    o Item Code
    o Album title
    o Description
    o Distributer
    o Quantity on hand
    o Number of tracks
    o Tracks listing
    o Cost price
    o Selling price
    o Status (eg. available or unavailable)
    o Discount (5%, 10%, 20%, )

    Stationery
    o Item Code
    o Brand name (eg : Faber-Castell, Stabilo ...)
    o Type (eg : pen, paper...)
    o Manufacturer
    o Barcode-13
    o Quantity on hand
    o Cost price
    o Selling Price
    o Status (eg. available or unavailable)
    o Discount (5%, 10%, 20%, )

    Note:
    Each item must be categorized as a book, CD or stationery.
    The following details must be kept for a Publisher and a Distributer: Company name and address.



    any expert can teach me or giving some hints.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: please help me .

    give me some hints to start it
    Design some classes to hold the data.
    The class should have a name and some variables to hold all the data needed.
    The class should have constructors for creating an instance.
    There should be methods to get the values of some of the variables.

    Then you need to look at the application that will use the class to see what other methods it needs.

    Basic syntax:
    class <CLASSNAME> {
    ....
    } // end class
    Last edited by Norm; July 29th, 2011 at 11:08 AM.

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: please help me .

    Quote Originally Posted by Norm View Post
    Design some classes to hold the data.
    The class should have a name and some variables to hold all the data needed.
    The class should have constructors for creating an instance.
    There should be methods to get the values of some of the variables.

    Then you need to look at the application that will use the class to see what other methods it needs.

    Basic syntax:
    class <CLASSNAME> {
    ....
    } // end class

    thanks you, but can u explain more detail to me .

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: please help me .

    We'll help you if you have problems with your code, but we don't write your code for you.
    Look at the Tutorial on how to define a class:
    The Really Big Index
    Search for class and read about how to define and use classes.

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: please help me .

    can ask about the categories of CD,the "tracks listing" i should use INT or STRING ??

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: please help me .

    int is for numbers that you can use for doing math like counting or sizes
    String is for values to be displayed to a user like a name.