Write program to compute payroll information for an employee

Assignment Help Python Programming
Reference no: EM132355447

Question

Write program to compute payroll information for an employee.

Input: The program should ask the user for the following:

1. Social Security Number

2. Last Name

3. First Name

4. Hours

5. Payrate

Processing: The program should calculate the following:

1. Gross pay. NOTE - for more than 40 hours, payrate should be one and a half times and regular payrate. Example: For 42 hours and payrate 10/hr, the gross pay would be calculated by multiplying 40 of the hours by the regular payrate (10) and then multiplying the remaining 2 overtime hours by 15, and then adding those two quantities together for a gross pay of 430.

2. Amount withheld for social security taxes (assume a rate of 7.5%)

3. Amount withheld for Federal income tax (assume a federal tax rate of 25%)

4. Amount withheld for state income tax (assume a state tax rate of 7%)

5. Total of deductions

6. Net pay

Output: print a report, labelling each of the items as shown in the following example:

Payroll Report

Social security number: 501-11-1111

Name: Joseph Johnson

Hours: 40

Payrate: $9.00

Gross pay: $360.00

SS Tax withheld: $27.00

Federal Tax withheld: $90.00

State Tax withheld: $25.00

Total Deductions: $142.00

Net Pay: $217.18

Reference no: EM132355447

Questions Cloud

Create a program that prompt the user to enter five positive : Create a program that prompt the user to enter five positive numbers and calculate the average. When a negative number is entered, program will be terminated.
Calculates the total for a purchase at a wholesale store : Create a program that calculates the total for a purchase at a wholesale store. The response paper should be in APA format.
Construct a letter addressed to my immediate supervisor : Working in a nursing home ... need help advise on how to construct a letter addressed to my immediate supervisor and provide them with relevant details
Effective interpersonal communication : There are three key elements needed to build relationships...trust, effective interpersonal communication
Write program to compute payroll information for an employee : Write program to compute payroll information for an employee.Input: The program should ask the user for the following: Social Security Number.
Geographic and product markets of large healthcare : How would you define the geographic and product markets of large healthcare organizations such as Mayo Clinic and Johns Hopkins? What are new competitors
Ways the federal trade commission act : What are some of the ways the Federal Trade Commission Act could apply to a healthcare operation?
Compare and contrast the description : Compare and contrast the description and use of physical data flow diagrams and logical data flow disgrams?
How would you decide which strategic and operational plans : How would you decide which strategic and operational plans to use to achieve your goals?

Reviews

Write a Review

Python Programming Questions & Answers

  Write Python program that generates an informative web site

ICT112 Assignment - Generated Web Site for Aussie Airport Passenger Movements. University of the Sunshine Coast. write a Python program that generates a site

  Compute the acceleration of gravity for a given distance

Compute the acceleration of gravity for a given distance from the earth's center, dist_center, assigning the result to accel_gravity.

  Write a program that has a conversation with the user

Assignment - Write a program that has a conversation with the user. The program must ask for both strings and numbers as input

  Write a program that translates a letter grade into a number

Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -.

  Write a python script that counts occurrences of words

Write a python script that counts occurrences of words in a file. The script expects two command-line arguments: the name of an input file and a threshold.

  Calculate and print bills for the city power company

Write program that will calculate and print bills for the city power company. The rates vary depending on whether the use is residential, commercial

  Project - expand the simulation with a class hierarchy

Project: Expand the Simulation with a Class Hierarchy. Purpose: Expand classes into a hierarchy. Introduce a View to the Model-View-Controller design pattern. Provide more functionality to the simulation

  Create a function that takes filename as a parameter

Create a function that takes fileName as a parameter. The file is a CSV file where the first column is the test number and the second column is the test score.

  A python program that takes a value from a user and store

You need help writing a Python program that takes a value from a user and stores it in the registry.

  Display all pays in proper currency format with the dollar

Your program should prompt for the weekly hours worked and the regular hourly pay rate. Output should display the regular pay, overtime pay.

  Define an init method that has one parameter named self

Define an init method that has one parameter named "self." In the init method, create an instance variable named dice that holds an empty list.

  Make your own test cases and think about what the edge cases

The second function you will write should be called 'countLetter'. Your function should take two (2) arguments. The first will be a string.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd