Make a payroll calculation program

Assignment Help Business Management
Reference no: EM131687665

Payroll

A local small business has hired you to make a payroll calculation program. The program only needs to calculate gross pay for an employee and display the results. Your program will accept the employee's name, hours worked, and the employee's pay rate. The program will need to calculate overtime as well. Overtime is defined as anything over 40 hours is paid at 1.5 times the regular pay. The program should print the employee's name, the gross pay amount, and only if there was overtime, print the overtime pay amount as well. Finally, the program should repeat as necessary until the user enters a sentinel value.

For this project:

  • You will submit your python code in either the original .py file, or copied into a .txt file.
  • A screenshot of your code having been executed (run). How to Take a Screenshot

Tips: Remember to keep track of input data types when comparing values. input() formats the user's data as a string, so comparing string data to a number without quotes would produce an error.

Do not worry about security, it is irrelevant here. Just focus on the functionality discussed above.

Remember to follow the guidelines of good program design. Make sure to use meaningful variable names, include comments as needed, and provide thoughtful output.

Example output:

C:>python week2.py

ABC Inc., Gross Pay Calculator!

Enter employee's name or 0 to quit: Nathan

Enter hours worked: 35

Enter employee's pay rate: 10.00

Employee Name: Nathan

Gross Pay: 350.0

Enter next employee's name or 0 to quit: Toby

Enter hours worked: 45

Enter employee's pay rate: 10

Employee Name: Toby

Gross Pay: 475.0

(overtime pay: 75.0 )

Enter next employee's name or 0 to quit: 0

Exiting program...

Reference no: EM131687665

Questions Cloud

About starbucks strengths-weaknesses-opportunities : List at least FOUR sources you will use to obtain information about STARBUCKS' strengths, weaknesses, opportunities, and threats.
Ciphers are broadly categorized as using transposition : Ciphers are broadly categorized as using transposition, substitution or trap-door functions. Please provide an example of each type of cipher.
Innocence project organization played an important role : The Innocence Project Organization played an important role in the case of Kirk Bloodsworth that begun in 1984
Information regarding the algorithm : The development of AES was done in a completely open manner, including detailed information regarding the algorithm used for the cipher. Was this a good idea?
Make a payroll calculation program : A local small business has hired you to make a payroll calculation program. The program only needs to calculate gross pay for an employee
Discuss future employer regarding employee : Why or why not? What recommendations would you make to your current or future employer regarding employee
What are the policy implications : How would you approach health care systems leaders or employers about changing employment policies related to punitive actions when errors occur?
Compute growth in between to and after buying equipment : Compute the growth in between the to and after buying the new equipment.
Range of access and authentication controls : Recommend the range of access and authentication controls as part of planning for a secure data center, including the use of supporting examples.

Reviews

Write a Review

Business Management Questions & Answers

  What is the swot analysis of zappos

What is the SWOT analysis of Zappos.com? Could you please answer my question.

  Discipline of suspending assumptions

Team Learning is the discipline of suspending your assumptions and entering into genuine "thinking together" and mastering the practices of dialog and discussion (after reading Senge's chapter you should know there is a difference). Think about th..

  Good and effective spokesperson in a crisis

What are the essential elements of a good and effective spokesperson in a crisis?

  Compute the collections from customers

Player Ocean Auto Parts Company uses the direct method to prepare its statement of cash flows. Refer to the following information reported for 2017:

  Talking about the work environment training

Are they talking about the work environment, training, other qualifications and advancement, education and training, licensure and certification? If not can you point me in a better direction with better understanding?

  Likely to focus on external controls

Which cultures would be more likely to focus on external controls? Which cultures would consider direct controls to be more important than indirect controls? Be specific and explain your answer.

  What was conflict about and what was proposed solution

Prepare a paper in APA format in which you describe a group conflict scenario and propose a possible solution.

  Theoretical and methodological issues in research

Reflect critically on theoretical and methodological issues in research, including critically evaluating published journal articles;

  Develop a detailed description and implementation plan

Develop a detailed description and implementation plan for the innovation that is attached below. Must research and describe a methodology that could be utilized to implement the innovation.

  Conduct an internet search for cases

Pick two of the types of criminal acts discussed in the chapter, and conduct an internet search for cases in which a security professional was charged with those particular offenses. Explain in detail the facts of the case, why you selected it and..

  What is the value of information

What is the value of information? How does it affect the viability and competitiveness of nations? Give one specific example of a nation that has accomplished this and how it was achieved

  What is the liability of d on her indorsement

A negotiable promissory note executed and delivered by B to C passed in due course to and was indorsed in blank by C, D, E, and F. G, the present holder, strikes out D's indorsement. What is the liability of D on her indorsement?

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