Find Jobs
Hire Freelancers

payroll part 2

$30-250 USD

进行中
已发布将近 6 年前

$30-250 USD

货到付款
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)
项目 ID: 17176388

关于此项目

6提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
6威客以平均价$123 USD来参与此工作竞价
用户头像
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.
$155 USD 在3天之内
4.9 (23条评论)
6.2
6.2
用户头像
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.
$50 USD 在1天之内
5.0 (37条评论)
5.6
5.6
用户头像
Hi, I can build this project with the 4 java classes. I am a software engineer with high skills in java. Contact me
$55 USD 在2天之内
3.4 (5条评论)
3.0
3.0
用户头像
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 know the importance of deadlines. This task seems like something I can complete on time. If you are interested, feel free to talk. Let's see whether I can help you out with this. Cheers! :)
$166 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
I can do this within 24hrs. I have countless hours in design and programming in projects just like this.
$155 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Woodbridge, United States
4.9
9
付款方式已验证
会员自12月 9, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。