Results 1 to 9 of 9
Like Tree4Likes
  • 1 Post By Conor-Magee
  • 2 Post By kjkrum
  • 1 Post By kjkrum

Thread: Networking with java

  1. #1
    munny is offline Member
    Join Date
    Nov 2011
    Posts
    8
    Rep Power
    0

    Default Networking with java

    Hey, i need a project done for me, [snip]

    heres the background of the problem,

    Your task is to complete the implementation of a seller server that can be connected to by a telnet buyer. Both seller and buyer will bargain with each other over the network to arrive at a deal and set the price of an item. The seller is implemented as a multithreaded server that will accept any number of client connections. The buyer should be able to connect to a seller over the network and initiate a bargaining session.

    The seller has a cost (randomly generated) associated with the item being sold and will not sell at a price lower than the cost value. The seller also has a number of days in which to sell. If the seller’s time limit expires, the whole deal is aborted. One day ticks by each time after each round of bargaining.

    For example, a seller with an item worth 100 and a time limit of four days to sell may receive a client bid of 90. If that bid is countered with an offer of 120, the buyer must decide by how much to increase his/her bid. The second round may lead to a bid of 95 and an offer of 115.


    Either the buyer or the seller may decide to accept the price set by the other party at any time after the first bid is made. If time runs out and a deal has not been made, the deal is aborted and neither side makes any profit. A seller must not accept a bid less than the cost of the item.

    An abstract seller class will be provided for you to extend. You must not alter this class in any way; instead create your own classes that extend the abstract seller class and devise a bidding strategy to counter buyer’s bids.
    Last edited by sunde887; 11-20-2011 at 04:31 AM.

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,058
    Rep Power
    6

    Default Re: Networking with java

    Sounds suspiciously like homework.
    Get in the habit of using standard Java naming conventions!

  3. #3
    Conor-Magee is offline Member
    Join Date
    Nov 2011
    Posts
    16
    Rep Power
    0

    Default Re: Networking with java

    Quote Originally Posted by kjkrum View Post
    Sounds suspiciously like homework.
    When there's suspicion that its homework, don't just provide the code. Do what the forums created for, give the guidelines and let him code himself :)
    Fubarable likes this.

  4. #4
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,058
    Rep Power
    6

    Default Re: Networking with java

    He's already declared that he has no interest in doing it himself. He wants to pay someone to do it. Which might be perfectly reasonable, if it wasn't homework. But this would be a dead giveaway, if it weren't already obvious enough:

    The seller has a cost (randomly generated) associated with the item being sold
    Do your own homework, kid.
    Get in the habit of using standard Java naming conventions!

  5. #5
    munny is offline Member
    Join Date
    Nov 2011
    Posts
    8
    Rep Power
    0

    Default Re: Networking with java

    Mate, this aint some homework, what school or college would give this as homework? If you are not here to help, then why post in the first place?

    Im not a kid btw, avoid much suspicion, you are wrong in many levels.

  6. #6
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,058
    Rep Power
    6

    Default Re: Networking with java

    So you have a real-world application in which prices are determined randomly? You're full of shit.
    Conor-Magee and Fubarable like this.
    Get in the habit of using standard Java naming conventions!

  7. #7
    munny is offline Member
    Join Date
    Nov 2011
    Posts
    8
    Rep Power
    0

    Default Re: Networking with java

    Quote Originally Posted by kjkrum View Post
    So you have a real-world application in which prices are determined randomly? You're full of shit.
    Who said this is for "real life", you dont even know my intentions yet you judge lol, well we know whos full of "sh*t"

  8. #8
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,058
    Rep Power
    6

    Default Re: Networking with java

    Quote Originally Posted by munny View Post
    Mate, this aint some homework, what school or college would give this as homework?
    Probably the same school that gave the same assignment, word for word, to this person approximately one year ago.

    You're not fooling anyone. Here's hoping you fail the class.
    Fubarable likes this.
    Get in the habit of using standard Java naming conventions!

  9. #9
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default Re: Networking with java

    Closing this thread, thanks for bringing it to my attention kjkrum.

    @OP: There are two situations here: Either you are attempting to pay someone to do homework for you (which is frowned upon). Or you want to hire someone to do some work for you, in which case there is a specific section in the forums for just that.

Similar Threads

  1. New to networking in java...
    By jigglywiggly in forum New To Java
    Replies: 4
    Last Post: 05-25-2010, 08:10 AM
  2. Networking in Java
    By thangavel14 in forum Networking
    Replies: 3
    Last Post: 07-30-2009, 01:47 AM
  3. Java networking.
    By tim in forum New To Java
    Replies: 7
    Last Post: 07-16-2009, 10:43 PM
  4. Java networking programming (I)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 12-24-2007, 07:21 PM

Posting Permissions

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