Em Andamento

More simple java

Comments are REQUIRED

The file must be called <Payroll.java> (driver program)

[url removed, login to view]

[url removed, login to view] (which extends employee)

[url removed, login to view] (which extends employee)

[url removed, login to view] (which extends Salaried)

Overall Requirements

Write an employee payroll program that uses polymorphism to calculate and print the weekly payroll for your company. There are three types of employees: hourly, salaried, and salaried plus commission. Each type of employee gets paid using a different formula. But for all employee types, if the calculated paycheck exceeds $1000, the actual paycheck must be decreased to $1000.

Use this class hierarchy:

Use the public access modifier for the toString method in the Employee class and the load method in the Employee, Hourly, Salaried, and SalariedPlusCommission classes.

[url removed, login to view] class

Instance variables:

name

social security number

birthday month

birthday week

load method :

Prompts the user for instance-variable values and loads the entries.

toString method:

Returns a string that shows the employee’s name, social security number, and paycheck.. Use the [url removed, login to view] method (See Java API documentation to help you format the string as shown in the sample session’s paycheck report.) Here’s an example from the sample session:

employee: Biff Sanchez

social security number: 111-11-1111

paycheck: $800.00

getBonus method:

Generates a $100 employee birthday bonus. Compare the employee’s birthday with the current date found on your computer system. Use the Calendar class to generate the current date. (See Sun’s Java API documentation.) If the employee’s birthday month and birthday week match your computer system’s current month and current week, then increment the employee’s paycheck by $100. The birthdayMonth holds the month (1─12) in which the employee was born. The birthdayWeek holds the week (1─4) that the employee chooses to get paid his/her bonus.

Include a getEarnings method that is abstract.

Use the public access modifier for the toString method to return a string version of the contents of the employee.

[url removed, login to view] class

Instance variables:

hourly pay

hours worked during the past week

load method:

Prompts the user for instance-variable values and loads the entries.

Include a getEarnings method that calculates earnings for an hourly employee. Hourly employees are paid by the hour. If they work more than 40 hours in a week, then they receive overtime pay for their overtime work. Overtime pay equals one and a half times their normal hourly pay.

[url removed, login to view] class

Instance variables:

Weekly salary

load method:

Prompts the user for instance-variable values and loads the entries.

Include a getEarnings method that calculates earnings for a salaried employee. Salaried employees are paid their fixed weekly salary regardless of the number of hours they work.

[url removed, login to view] class

Instance variables:

Sales during the past week

commission rate

load method:

Prompts the user for instance-variable values and loads the entries.

Include a getEarnings method that calculates earnings for a SalariedPlusCommission employee. SalariedPlusCommission employees are paid a base salary plus a percentage of their sales. “Percentage of their sales” equates to the product of their sales times their commission rate.

Use initially declared named constants instead of hardcoded “magic numbers” embedded in the program.

Provide a driver that generates the following queries and outputs.

Sample session (assuming current month = 10 and current week = 2):

Number of employees: 3

PROFILE FOR EMPLOYEE #1:

type Hourly(1), Salaried(2), Salaried plus Commission(3)

Enter 1, 2, or 3 ==> 1

Name ==> Biff Sanchez

Social security number ==> 111-11-1111

Birthday month (1-12) ==> 2

Birthday bonus week (1-4) ==> 3

Hourly pay ==> 20

Hours worked this past week ==> 30

PROFILE FOR EMPLOYEE #2:

type Hourly(1), Salaried(2), Salaried plus Commission(3)

Enter 1, 2, or 3 ==> 2

Name ==> Dirk Jones

Social security number ==> 222-22-2222

Birthday month (1-12) ==> 10

Birthday bonus week (1-4) ==> 2

Salary ==> 700

PROFILE FOR EMPLOYEE #3:

type Hourly(1), Salaried(2), Salaried plus Commission(3)

Enter 1, 2, or 3 ==> 3

Name ==> Suzie Que

Social security number ==> 333-33-3333

Birthday month (1-12) ==> 7

Birthday bonus week (1-4) ==> 3

Salary ==> 400

Sales for this past week ==> 2000

Sales commission rate (fraction paid to employee) ==> .25

PAYCHECK REPORT:

employee: Biff Sanchez

social security number: 111-11-1111

paycheck: $600.00

employee: Dirk Jones

social security number: 222-22-2222

paycheck: $800.00

employee: Suzie Que

social security number: 333-33-3333

paycheck: $900.00

Habilidades: Java

Ver mais: java simple commission, java payroll include birthday, hourly employee payroll java, java program payroll overtime, paycheck java overtime, java employee compare salary simple commission, the payroll company, sun documentation java, string match, string c plus plus, security company sales, sample product profile, sample of payroll, sample of birthday program format, sample of birthday program, sample of a payroll, sample birthday program format, sample birthday program, paycheck plus, paid by the hour, paid by hour, n equals, method to write a report, match string, lt security

Acerca do Empregador:
( 6 comentários ) Monument, United States

ID do Projeto: #551583

Premiar a:

ancosys

Hi, Please check pm. Thanks!

$30 USD em 1 dia
(47 Avaliações)
5.4

31 freelancers estão ofertando em média $78 para este trabalho

creatorul

Professional solutions

$100 USD em 1 dia
(38 Comentários)
6.3
milanJ

Hi, Please check PM.

$30 USD em 1 dia
(40 Comentários)
5.9
wauma002

Hi, please check PM for details. Rgds, Jef

$100 USD em 1 dia
(13 Comentários)
5.3
is00hcw

Hi, I am interested in your project.

$30 USD em 1 dia
(46 Comentários)
5.3
srinichal

Very easy project...can be delivered in just a day

$30 USD in 0 dias
(17 Comentários)
5.1
kindcoder

Hi, please see PM. Thanks.

$40 USD em 1 dia
(9 Comentários)
3.7
rakib062

Hello sir, I have over 2 years of experince in java.I did simillar job under my course project.I can do the job [url removed, login to view] for your reply. Thanks.

$30 USD in 2 dias
(7 Comentários)
3.7
INSTANTCODER

hi ! i can do this perfectly. give me an opportunity to do this for you. (i can do this for $20 , but the minimum bid amount allowed is $30) thanks

$30 USD em 1 dia
(21 Comentários)
3.6
dmantampfl

Hi, I can do this project.

$30 USD em 1 dia
(5 Comentários)
3.1
jbhutada

Hi, I have 5 years of experience in java/j2EE appliction development and you would be really happy with the quality of the work.

$35 USD in 2 dias
(1 Comentário)
2.4
abhisheksamanta

Hi there, I have a 5 years experience in java. So I am very confidant in completing this project successfully. From my past experience I can assure you that, if this project comes to us, it will be delivered wi Mais

$30 USD em 1 dia
(3 Comentários)
2.2
javacoder007

I am working in Java/J2ee from past 5 yrs inspite of this i have also done following certifications.. [url removed, login to view] Certified Java Programmer [url removed, login to view] Certified Web Component Developer [url removed, login to view] Certified Business Component Develo Mais

$30 USD in 2 dias
(4 Comentários)
2.2
martapodlacha

Ok, can do it for you.

$30 USD em 1 dia
(2 Comentários)
2.0
developer84

hi check pm please

$30 USD em 1 dia
(1 Comentário)
1.2
barca545

hi i am new in java and i want to make a helpful project. i don't care about money, just i want to have a good practical experience.

$30 USD in 3 dias
(0 Comentários)
0.0
gxb

Sir,I can do this job for you.

$30 USD em 1 dia
(0 Comentários)
0.0
vinodh88

I can do it with perfection and [url removed, login to view] i need 5 days.

$30 USD in 5 dias
(0 Comentários)
0.0
i23098

This time I've bid before making it ;) But I can do it :)

$30 USD em 1 dia
(0 Comentários)
0.0
ihsofttech

Please Check PM - IMPORTANT

$60 USD in 0 dias
(0 Comentários)
0.0
EnventureTech

Hi, How are you doing. What are you looking at in this project. I have the java expertise and how do we take this forward. Cheers ! kk

$350 USD in 10 dias
(1 Comentário)
4.4