Show Bid Request
Develop Java classes for each of the following objects
Bid Request Id: 10733
|
|
|
Posted by: |
timerom (2 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Above Average - 33.33%
|
Posted: |
Mar 13, 2002 2:51:26 AM EDT
|
Bidding Closes: |
Mar 17, 2002 3:00:00 PM EDT
|
Viewed (by coders): |
261 times
|
Deadline: |
3/19/2002
TIME EXPIRED
|
|
|
|
Description:
Develop Java classes for each of the following objects:
1. A generic element class named elt; abstract class, no data members and no member functions.
2. A child class of the class elt named comp_elt; abstract class, no data members and 1 abstract member function named compare. The compare function is to be called as x.compare(y) where both x and y are instances of comp_elt; compare returns -1 if x < y; 0 if x = y; 1 if x > y.
3. A generic stack class named my_stack; concrete class, each instance has a data member which is an array of references to instances of class elt. Another data member named count is an int which keeps track of the number of active elt refs in the given instance of my_stack. Two more int data members named max and grow_by keep track of the current size of the array and the amount it should grow by if it fills up at the current size.
member functions:
default constructor sets max to 50 and grow_by to 0.
a second constructor allows user to set both the initial size of the array and the grow_by amount as parameters. The first parameter sets the size to 50 and the second to 10.
a member function named push takes an elt ref as its only parameter and inserts that elt ref into the stack as the Last-in member of the stack.
a member function named pop removes the Last-in ref and returns that ref to the user.
a member function size returns the number of active elt refs in the current stack.
a member function empty returns true if the stack is empty, false otherwise.
4. A generic queue class named my_queue;concrete class, each instance has a data member which is an array of references to instances of class elt.
Two more data members named front and back are ints and keep track of the indices of the front and back elt refs in the given instance of my_stack.
Two more int data members named max and grow_by keep track of the current size of the array and the amount member functions:
default constructor sets max to 50 and grow_by to 0.
a second constructor allows user to set both the initial size of the array and the grow_by amount as parameters.
insert: takes a single comp_elt ref and inserts that ret into the heap.
remove: removes the root from the heap and returns the appropriate ref.
size: returns number of active comp_elt refs in the heap.
bubbleup(private): restores the power relationship in the heap during inseret.
bubbledown(private): restores the power relationship in the heap during a remove.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Program must be fully comment.
Complete copyrights to all work purchased.
DUE March 19, 2002. 7:00PM Eastern Time.
*** PLEASE SEE ATTACHMENT FILE FOR DETAIL OUTLINE! ***
Platform:
Must be able to compile and execute on Java (JDK 1.1)
DUE March 19, 2002. 7:00PM Eastern Time.
*** PLEASE SEE ATTACHMENT FILE FOR DETAIL OUTLINE! ***
Must be 100% finished and received by buyer on:
Mar 19, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
DUE March 19, 2002. 7:00PM Eastern Time.
*** PLEASE SEE ATTACHMENT FILE FOR DETAIL OUTLINE! ***
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$7 (USD)
|
Mar 17, 2002 3:43:31 PM EDT
|
7
(Good)
|
|
|
I would like to work on your project. Choose my bid so I can get to work as soon as possible. |
|
|
|
|
|