Find Jobs
Hire Freelancers

Abstract Classes In Java - Homework Help

$30-5000 USD

W trakcie realizacji
Opublikowano prawie 22 lata temu

$30-5000 USD

Płatne przy odbiorze
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!
Identyfikator projektu: 2859567

Informację o projekcie

13 ofert
Zdalny projekt
Aktywny 22 lata temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
See private message.
$17 USD w 14 dni
4,5 (17 opinii)
3,3
3,3
13 freelancerzy składają oferty o średniej wysokości $42 USD dla tej pracy
Awatar Użytkownika
See private message.
$85 USD w 14 dni
5,0 (15 opinii)
6,6
6,6
Awatar Użytkownika
See private message.
$42,50 USD w 14 dni
4,8 (7 opinii)
6,1
6,1
Awatar Użytkownika
See private message.
$12,75 USD w 14 dni
5,0 (29 opinii)
3,6
3,6
Awatar Użytkownika
See private message.
$38,25 USD w 14 dni
4,6 (14 opinii)
3,4
3,4
Awatar Użytkownika
See private message.
$85 USD w 14 dni
4,8 (9 opinii)
3,3
3,3
Awatar Użytkownika
See private message.
$51 USD w 14 dni
5,0 (7 opinii)
2,8
2,8
Awatar Użytkownika
See private message.
$25,50 USD w 14 dni
5,0 (6 opinii)
2,1
2,1
Awatar Użytkownika
See private message.
$8,50 USD w 14 dni
5,0 (3 opinii)
0,7
0,7
Awatar Użytkownika
See private message.
$127,50 USD w 14 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
See private message.
$8,50 USD w 14 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
See private message.
$4,25 USD w 14 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
See private message.
$44,20 USD w 14 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
United States
4,9
9
Członek od mar 30, 2002

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.