Question

write a program that reads the following information and prints a payroll statement Employees name (Smith)...

write a program that reads the following information and prints a payroll statement Employees name (Smith)
number of hours worked in a week(e.g.,10)
hourly pay rate (e.g.,9.75)
federal tax withholding (e.g. ,20%)
state tax withholding (e.g., 9%) in python

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program:

name = input("Enter employee's name: ")

hours = int(input("Enter number of hours worked in a week: "))

rate = float(input("Enter hourly pay rate: "))

federalTax = int(input("federal tax Withholding: "))

stateTax = int(input("Enter state tax Withholding: "))

GrossPay = hours*rate

federalWithholding = GrossPay * federalTax/100

stateWithholding = GrossPay * stateTax/100

totalDeduction = federalWithholding + stateWithholding

netPay = GrossPay - totalDeduction

print("Federal Withholding:$",federalWithholding)

print("State Withholding:$",stateWithholding)

print("Total Deduction:$",totalDeduction)

print("Net Pay:$",netPay)

Output:

Add a comment
Know the answer?
Add Answer to:
write a program that reads the following information and prints a payroll statement Employees name (Smith)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You are to write a program that will process employees and their pay. For each employee...

    You are to write a program that will process employees and their pay. For each employee the program will read in an employee’s name and hourly pay rate. It should also read in the number of hours worked each day for 5 days and calculate his or her total number of hours worked. You must read the hours using a loop. The program should output the employee’s name, gross pay, total withholding amount and net pay. Withholding is made up...

  • C++ Program The Ward Bus Manufacturing Company has recently hired you to help them convert their...

    C++ Program The Ward Bus Manufacturing Company has recently hired you to help them convert their manual payroll system to a computer-based system. Write a program to produce a 1-week payroll report for only one employee to serve as a prototype (model) for the administration to review. Input for the system will be the employee’s 4-digit ID number, the employee’s name, hours worked that week, and the employee’s hourly pay rate. Output should consist of the employee’s ID number, the...

  • Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The...

    Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $2,910 per week $36 per hour $46 per hour Overtime earnings rate Not applicable 1.5 times hourly rate 2 times hourly rate Number of withholding allowances 3 2 1 For the current pay period, the computer programmer worked 60 hours and the administrator worked 50 hours. The federal income...

  • write this program in Java Problem 5. (30 Points) Write a program that reads employee work...

    write this program in Java Problem 5. (30 Points) Write a program that reads employee work data from a text file employee.txt), and then calculates payroll information based on this file and store them into a new text file called payroll.txt. The employee. txt file contains one line of text for each employee. Each line consists of the following data (delimited by tabs): employee's name, employee's hourly wage rate, hours worked Monday, hours worked Tuesday, hours worked Wednesday, hours worked...

  • Calculate Payroll Breakin Away Company has three employees—a consultant, a computer programmer, and an administrator. The...

    Calculate Payroll Breakin Away Company has three employees—a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $4,000 per week $60 per hour $50 per hour Overtime earnings rate* Not applicable 1.5 times hourly rate 2 times hourly rate Number of withholding allowances 2 1 2 *For hourly employees, overtime is paid for hours worked in excess of 40 hours per week. For the current pay...

  • OEX71-10 Calculate payroll Obj. 2 Breakin Away Company has three employees-a consultant, a computer programmer, and...

    OEX71-10 Calculate payroll Obj. 2 Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Show Consultantc $4,000 per week Not applicable Computer Pregrammer Regular earnings rate Overtime earnings rate Number of withholding allowances $60 per hour 1.5 times hourly rate 550 per hour 2 times hourly rate or hourly employees overtime is paid for hours worked in excess of 40 hours per week. For the current pay...

  • Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The...

    Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $3,010 per week $36 per hour $44 per hour Overtime earnings rate Not applicable 1.5 times hourly rate 2 times hourly rate Number of withholding allowances 3 2 1 For the current pay period, the computer programmer worked 60 hours and the administrator worked 50 hours. The federal income...

  • Calculate Payroll Breakin Away Company has three employees a consultant, a computer programmer, and an administrator....

    Calculate Payroll Breakin Away Company has three employees a consultant, a computer programmer, and an administrator. The following payroll information is available for each employees Consultant Computer Programmer $2,310 per week $32 per hour Regular earnings rate Overtime camnings rate Number of withholding allowances Administrator 548 per hour 2 times hourly rate Not applicable 1.5 times hourly rate For the current pay period, the computer programmer worked 60 hours and the administrator worked 50 hours. The federal income tax withheld...

  • Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. Th...

    Calculate Payroll Breakin Away Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $3,010 per week $36 per hour $44 per hour Overtime earnings rate Not applicable 1.5 times hourly rate 2 times hourly rate Number of withholding allowances 3 2 1 For the current pay period, the computer programmer worked 60 hours and the administrator worked 50 hours. The federal income...

  • Information ABC Company Number of Employees 7 Employee Name Hours worked Hourly rate John Doe 40...

    Information ABC Company Number of Employees 7 Employee Name Hours worked Hourly rate John Doe 40 $25.00 Jane Jones 40 $24.00 Jessie Smith 40 $17.00 Erik Ackers 25 $15.00 Nan Schmit 30 $17.00 Larry Johnson 35 $18.00 Christopher Hay 40 $18.00 Assume Federal Income Tax will be withheld at a rate of 20% for everyone. FICA Social Security rate is 6.2% and Medicare is 1.45%. When you called your State, they told you that your State Unemployment tax rate would...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT