Show Bid Request
OOP JAVA
Bid Request Id: 27828
|
|
|
Posted by: |
x-linux (44 ratings)
(Software buyer rating 9.31)
|
Non-action Ratio: |
Above Average - 39.53%
|
Buyer Security Verifications: |
Excellent
|
Approved on: |
Sep 17, 2002 8:05:45 PM EDT
|
Bidding Closes: |
Sep 19, 2002 8:10:47 PM EDT
|
Viewed (by coders): |
172 times
|
Deadline: |
9/20/2002
TIME EXPIRED
|
|
|
|
Description:
18. Write a class to keep track of movement of a cat. Include three instance variables to hold the x, y, and z positions of the cat. Include a method for the cat to walk to another position. This method has two parameters specifying the change in x and the change in y. If the cat is at (3, 4, 5) and we ask it to walk (1, 4) then it will be at (4, 8, 5). (Walking is a horizontal action here.) Include a method for the cat to jump to another position. This method has one parameter specifying the change in the cat&'s vertical position. If the cat is at (3, 4, 5) and we ask it to jump (5) it will be at (3, 4, 10). Include a method to display a cat&'s position. Test in a main method, creating a few cats and have them walk and jump. Display their final position.
22. Write a coffee vending machine class. Include fields giving the number of cups of coffee available, the cost of one cup of coffee, and the total amount of money inserted by the user. This machine requires exact change. Include one constructor which stocks the machine with a quantity and price of coffee specified as parameters, and another with no parameters which stocks the machine with 10 cups of coffee at fifty cents each. Include the following methods:
menu() //display the quantity and price of the coffee insert (int quarters, int dimes, int nickels) //inserts the given amount select() //dispenses a cup of coffee if user has inserted enough // money and coffee is available, otherwise displays a message refund() // returns the money inserted
Write a main method to create some vending machines and test their operation.
HAVE TO PUT A COMMENT IN EVERYLINE
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
Platform:
JAVA only NOT OTHERSS
Must be 100% finished and received by buyer on:
Sep 20, 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:
IF POSSIBLE done in 3-4 HOURS ONCE THE BID HAS BEEN ACCEPTED
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!
|
$5 (USD)
|
Sep 18, 2002 1:51:57 AM EDT
|
9.37
(Superb)
|
|
|
dear sir:
I have attached the Cat class file. In order to run it you have to open a command prompt and type 'java Cat'. You should see some text displayed as the Cats are being populated and told to walk and jump. I have created 3 Cat objects: cat1, cat2 and cat3. The initial position of the cats are:
cat1 = (1,2,3)
cat2 = (4,4,4)
cat3 = (6,-10,8)
then I make the cat1 walk(10,5)
cat2 jump(3)
cat3 walk(10,15) and then jump(7)
Finally I write each cat final position.
If you accept my bid I will send you the code for the Cat class as well as the code and the class for the coffee vending machine. I have written comments in EVERY line of code, even in the obvious ones.
Best Regards,
Daedalus Coding Services
|
|
Attached File
|
|
|
|
|