Find Jobs
Hire Freelancers

Payroll Shuffle

$10-30 USD

已取消
已发布大约 6 年前

$10-30 USD

货到付款
You are creating part of the payroll program for an Internet electronics store named "FluffShuffle Electronics". The owner of FluffShuffle has given you the following requirements: FluffShuffle employs six (6) people. The owner doesn't expect significant growth in his company, but may grow in the future. All of the employee data (name, address, etc.) is kept in a text file on your disk. Your program will read this employee data from the file and use that data to calculate the payroll for company employees. The program will have to calculate the payroll deductions for each employee and their net pay. If you encounter errors while reading a data file, print an error message to the console, and close the file. Your program should not exit, since you might choose another file with correct data. Suppose that your programming team has come up with a design for this program. In this design the data for each employee on the payroll will be held in a list, a tuple, a dictionary or an object of the Employee class. You get to choose how an employees data is stored. An Employee has the following attributes: employee number name street address hourly wage hours worked this week The Employee as a list or tuple or dict You can read the data for each employee into a list tuple, or dict, and then store that employee item as one element in the list of employees. The Employee Class An employee object will need the following methods: A constructor for the employee class that takes arguments to initialize all of the above mentioned attributes. A method, calc_salary(), that calculates and returns an employee's net pay as a double. An employee's gross pay is calculated by multiplying the hours worked by their hourly wage. Be sure to give time-and-a-half for overtime (anything over 40 hours). To compute the net pay, deduct 20% for Federal income tax, and 7.5% for state income tax. Every employee on the payroll will need to be represented in the program by its own employee object. A convenient way to handle this will be to create a list of employee objects, using lists, tuples or classes. GUI should look like picture below
项目 ID: 16686525

关于此项目

远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

UNITED STATES的国旗
Orem, United States
5.0
1
付款方式已验证
会员自4月 13, 2018起

客户认证

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