Find Jobs
Hire Freelancers

Abstract Classes In Java - Homework Help

$30-5000 USD

In Progress
Posted almost 22 years ago

$30-5000 USD

Paid on delivery
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: [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] 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: [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] 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) ## Deadline information 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!
Project ID: 2859567

About the project

13 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 14 days
4.5 (17 reviews)
3.3
3.3
13 freelancers are bidding on average $42 USD for this job
User Avatar
See private message.
$85 USD in 14 days
5.0 (15 reviews)
6.6
6.6
User Avatar
See private message.
$42.50 USD in 14 days
4.8 (7 reviews)
6.1
6.1
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (29 reviews)
3.6
3.6
User Avatar
See private message.
$38.25 USD in 14 days
4.6 (14 reviews)
3.4
3.4
User Avatar
See private message.
$85 USD in 14 days
4.8 (9 reviews)
3.3
3.3
User Avatar
See private message.
$51 USD in 14 days
5.0 (7 reviews)
2.8
2.8
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (6 reviews)
2.1
2.1
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (3 reviews)
0.7
0.7
User Avatar
See private message.
$127.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$4.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$44.20 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
4.9
9
Member since Mar 30, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.