Show Bid Request
Abstract Classes In Java - Homework Help
Bid Request Id: 21105
|
|
|
Posted by: |
GenXcoder (8 ratings)
(Software buyer rating 9.25)
|
Non-action Ratio: |
Very Good - 8.33%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Jul 8, 2002 10:47:20 PM EDT
|
Bidding Closes: |
Jul 9, 2002 11:30:50 PM EDT
|
Viewed (by coders): |
218 times
|
Deadline: |
7/9/2002 11:30:00 PM
TIME EXPIRED
|
|
|
|
Description:
NEED HELP!!! I need someone to help me with some Java homework regarding abstract classes. There are two parts. Need it done within 10 hours of acceptance!!!
Deliverables: Part I:
Program will have 5 files:
Driver.java Shape.java MyPoint.java MyCircle.java MyRectangle.java
Define an abstract base class Shape that includes a protected class variable numShapes, a static method to get the numbers of shapes, and two abstract methods findArea() and printArea() to output the area of the shape. Derive subclass MyPoint from MyShape.
MyPoint has two constructors: the first one is default which initializes instance variables x,y to zero, the second one accepts two arguments. Also, increment numShapes in the two constructors. Derive subclasses from MyPoint for MyCircle, and MyRectangle. MyCirlce has two constructors: the first constructor is default which initializes radius to 1. Make sure to call a base class constructor to initialize the points (i.e. super(10,10)).
The second constructor accepts two arguments: a point and a radius. Also, implement two methods findArea() and printArea(). These two methods are overriding in base class MyShape. MyRectangle class is implementing similar to MyCircle class except in the default constructor call a base class constructor to initialize the points to 50,50 (i.e. super(50,50)). Implement toString() method for each class. Test the classes by selecting two objects of the derived classes, then invoking the printArea() method for each. Use the toString() methods in the derived classes.
NOTE: SEE ATTACHED ZIP FILE FOR COMPLETE DETAILS AND INSTRUCTIONS!!! -------------------------------------------------- Part II:
Program will have 6 files:
Driver.java Employee.java Boss.java CommissionWorker.java PieceWorker.java HourlyWorker.java
Define an abstract base class Employee and use polymorphism to perform payroll calculations based on the type of an employee. The derived classes of Employee are Boss who gets paid a fixed weekly salary regardlass of the number of hours worked, CommissionWorker who gets a flat base salary plus a percentage of sales, PieceWorker who gets paid by the number of items produced, and HourlyWorker who gets paid by the hours and receives overtime pay.
An earnings method certainly applies generically to all employees. But the way each person's earnings are calculated depends on the class of the employee, and these classes are all derived from the base class Employee. So earnings is declared abstract in base class Employee and appropriate implementations of earnings are provided for each of the derived classes. Then, to calculate any employee's earnings, the program simply uses a base-class pointer (or reference) to that employee's object and invokes the earnings method.
NOTE: SEE ATTACHED ZIP FILE FOR COMPLETE DETAILS AND INSTRUCTIONS!!! -------------------------------------------------- Complete and fully-functional working program(s) in executable form, COMPLETE DOCUMENTATION OF ALL CLASSES/METHODS WITHIN PROGRAM, and complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Windows 9x, NT (4.0, 5.0, 5.1)
Must be 100% finished and received by buyer on:
Jul 9, 2002 11:30:00 PM 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:
I need this work completed WITHIN 10 HOURS OF ACCEPTANCE so I can go over it!!!
DEADLINE is 7/9/2002 1:00PM NO LATER!
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!
|
$20 (USD)
|
Jul 9, 2002 12:13:39 AM EDT
|
7.88
(Very Good)
|
|
|
Hello, I am an expert JAVA coder and know exactly what you need. Due to a previous job I did for a student, I have most of the code commented and ready.Forget 10 hrs., take the fully commneted work (just right for assignments)within 4 hrs. of bid acceptance.Just drop me a message that I'm on the job and by the time you'll make the payments etc., your job will be done.
Thanks, Sourav. |
|
|
|
|
|