Results 1 to 9 of 9
Thread: Networking with java
- 11-17-2011, 01:48 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 8
- Rep Power
- 0
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.
- 11-20-2011, 12:03 AM #2
Re: Networking with java
Sounds suspiciously like homework.
Get in the habit of using standard Java naming conventions!
- 11-20-2011, 01:31 AM #3
Member
- Join Date
- Nov 2011
- Posts
- 16
- Rep Power
- 0
- 11-20-2011, 01:35 AM #4
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:
Do your own homework, kid.The seller has a cost (randomly generated) associated with the item being soldGet in the habit of using standard Java naming conventions!
- 11-20-2011, 01:47 AM #5
Member
- Join Date
- Nov 2011
- Posts
- 8
- Rep Power
- 0
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.
- 11-20-2011, 01:48 AM #6
Re: Networking with java
So you have a real-world application in which prices are determined randomly? You're full of shit.
Get in the habit of using standard Java naming conventions!
- 11-20-2011, 01:49 AM #7
Member
- Join Date
- Nov 2011
- Posts
- 8
- Rep Power
- 0
- 11-20-2011, 02:50 AM #8
Re: Networking with java
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.Get in the habit of using standard Java naming conventions!
- 11-20-2011, 04:30 AM #9
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
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
-
New to networking in java...
By jigglywiggly in forum New To JavaReplies: 4Last Post: 05-25-2010, 08:10 AM -
Networking in Java
By thangavel14 in forum NetworkingReplies: 3Last Post: 07-30-2009, 01:47 AM -
Java networking.
By tim in forum New To JavaReplies: 7Last Post: 07-16-2009, 10:43 PM -
Java networking programming (I)
By Java Tutorial in forum Java TutorialReplies: 0Last Post: 12-24-2007, 07:21 PM


4Likes
LinkBack URL
About LinkBacks


Bookmarks