Completed

payroll part 2

Instructions: (This is the same asmt we did in class, the only difference is that the data file does not tell us how many employees we have. You need to figure out how to handle this situation. However, you may assume the number of employee will never exceed 20000.)

-----------------

Write a program to model three different kinds of employees in a company using inheritance and File I/O. Your program will consist of three classes that extend the class Employee and a testing class [login to view URL] that reads in payroll information from a file then prints it to the console window.

The Classes Manager, HourlyWorker, and CommissionEmployee:

-----------------------------------------------------------------------------------------

To model different types of employees, extend the provided abstract class Employee by writing three new classes: Manager, HourlyWorker, and CommissionEmployee. Implement the abstract methods as required. Managers get paid a fixed weekly salary, commission employees get paid based on base salary and commission (commission rate x sales), hourly workers get paid an hourly wage with time-and-a-half: 1.5 times the hourly wage for hours worked over 40 hours. Do not create additional fields, and only write methods that override methods from either Employee or Object.

The Class Payroll:

Create a class called Payroll with a main method to test your classes. This method should create an array of type Employee (think about what size you use?) Then, populate the array using data from the text file [login to view URL] using appropriate Java I/O techniques. Each line of the file will look similar to one of these:

#Steve, Davis,2000

*John, Kanet, 800, 7000, 0.10

@Thomas, Hill, 20, 50

*Lisa, Green,800,6000,0.10

In order to populate the array, you will need to split() each String on the (,) character so you can access each individual value of data. Based on the first value (e.g., #) your method will know whether to create a new Manager, HourlyWorker, or CommissionWorker object. Once created, populate the object with the remaining values then store it in the array. Finally, iterate through the array of employees using the enhanced for loop syntax, and print out each employee in the following format:

Manager:

Steve Davis $2000

Commission Employee:

John Kanet $1500 (Base salary: $800, sales: $7000, Commission rate: 10%)

Hourly Worker:

Thomas Hill $1100 (Hourly wage: $20, hours worked: 50)

Beceriler: Java, Yazılım Mimarisi, Yazılım Geliştirme

Daha fazlasını gör: digital certificates authentication techniques java xml file, java program parse text file, java fixed width text parser, java, java script hide text, java search copy text window, java search parse text, java code parse text file, writing java app parse text file, java parser txt, java input chinese text field, java socket server text file, java examples parse text, java reading file text, java parse txt files, java code parse text file database

İşveren Hakkında:
( 7 değerlendirme ) Woodbridge, United States

Proje NO: #17176388

Seçilen:

khangcnttit92

hi nice to meet you with more than 6 year for java so I can do it for you please contact me at here . thanks

%selectedBids___i_period_sub_7% gün içinde 50%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(90 Değerlendirme)
5.5

Bu iş için 12 freelancer ortalamada $177 teklif veriyor

lazermann

Hi! My name is Ihor, I will be glad to help you I have strong experience in Java and C# development for 3+ years. Feel free to contact me any time to discuss details.

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(16 Değerlendirme)
6.0
xinglong717

Hi i am java expert. i can help you. I understand about your requirements. I have good programming experience. I think I can do your work

in %bids___i_period_sub_35% gün içinde1000%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(17 Değerlendirme)
4.5
SilentStarMagic

hi,dear. We understand your requirements and I am very interested in this job - 'payroll part 2'. We are senior software developers and I am able to perform this task with my developers team. Java, Software Architect Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(15 Değerlendirme)
4.5
visualizerf

Hello I have 9+ years experience in Java working on various [login to view URL] project is quite simple for my experience, message me to discuss any details and start now. Have a nice day!

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(15 Değerlendirme)
4.0
naryl

Hello. It's a simple purely coding task and even the class structure is already written for you in the task description. I can do it in an hour or two starting right after you award me the project.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(6 Değerlendirme)
2.9
guynkama

Hi, I can build this project with the 4 java classes. I am a software engineer with high skills in java. Contact me

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)
2.3
gavindya

Hello there, I'm a well experienced Java developer. I think this is some kind of assignment which requires Java and seems like I can do it, if you provide me more information. Since I'm also a university student, I kn Daha Fazla

in %bids___i_period_sub_35% gün içinde166%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
greycr0w

Im an expert at Java and programming methodology, I can really do this I know inheritance very well. I also have worked with java I/O a lot!

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
0.0
gavindev

I can do this within 24hrs. I have countless hours in design and programming in projects just like this.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
dbdp026

Hi, I am a software developer working in java for the last three years. I will try to complete your project within one day but max it can take two days. I am new to freelancing and will be delighted to help you. Feel Daha Fazla

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
asthycaval

Hello, I am a programmer with 30 years of experience in the development of commercial and industrial systems in c, c ++, Java and databases SQL server, Oracle and db2.

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0