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 5 of 5

Thread: I NEED A WRITTEN CODE

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I NEED A WRITTEN CODE

    Hey guys , i need some expert to help me do this assignment cuz i know a little about Java

    Write a java program for a Bookstore using 2 classes: class Book, class Customer.


    Class Book:
    􀂾 Each object of class Book can hold the following information about a book: price and title.
    􀂾 Include the accessor methods for instance variables.
    􀂾 Instance variables initialization is done using the constructor
    Class Customer
    􀂾 Object of Customer represents a customer of a book store who can purchase books
    􀂾 Object of Customer can hold the name of person, member ID and amount spent.
    􀂾 name & member ID variables are initialized using the constructor
    􀂾 Include the accessor methods for instance variables
    􀂾 Method purchaseBook receives object of type Book, use this object to get the price of the book and increment
    the variable amount spent with this price


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: I NEED A WRITTEN CODE

    Sorry, it does not work like that. One of the purposes of these forums is to help users of all abilities to learn. Posting a question such as this is considered contrary to this purpose, and as such is against forum policy. If you wish to utilize these forums for all they are worth, I suggest an effort be made to complete the assignment. Should you encounter a problem along the way please post a clear question, any necessary source code, and all error messages you are receiving.

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I NEED A WRITTEN CODE

    man i just need a code to end my project , what is the problem ??

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: I NEED A WRITTEN CODE

    Evidently the problem is that you don't understand the members of this forum won't help you cheat.

  5. The Following User Says Thank You to copeg For This Useful Post:

    javapenguin (November 22nd, 2010)

  6. #5
    Member DavidFongs's Avatar
    Join Date
    Oct 2010
    Location
    Minneapolis, MN
    Posts
    107
    Thanks
    1
    Thanked 45 Times in 41 Posts

    Default Re: I NEED A WRITTEN CODE

    Quote Originally Posted by samy222 View Post
    man i just need a code to end my project , what is the problem ??
    Try this code, I found it: 2xdkl4939slz

    Good luck.

  7. The Following 2 Users Say Thank You to DavidFongs For This Useful Post:

    aussiemcgr (November 22nd, 2010), javapenguin (November 22nd, 2010)

Similar Threads

  1. need this program written
    By damajicman3 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 6th, 2010, 03:19 PM