Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

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...

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92496363
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Management

An array a1 n is said to have a majority element if more

An array A[1 . . . n] is said to have a majority element if more than half of its entries are the same. Given an array, the task is to design an efficient algorithm to tell whether the array has a majority element, and, ...

Digital books llc is a company that sells e-books related

Digital Books, LLC is a company that sells e-books related to career advising and professional development. Digital Books, LLC earns a yearly positive economic profit of $25,000 if it can sell 10,000 e-books. Each time, ...

The business model for jpmorgan chase was change in 2008

The business model for JPMorgan Chase was change in 2008. Could the upside of the strategy have been achieved without exposing JPMorgan Chase the bank?

Quantitative analysis for managerswhat is the essence of

Quantitative Analysis for Managers What is the essence of Decision Theory? How can the concept of decision theory be used in business, personal or academic activities?

The board of directors has voted to add a new product line

The Board of Directors has voted to add a new product line. Casey's department will be directly responsible for implementing the changes. Casey identifies a project team to take the lead. Does Casey's project team have a ...

Why is it important to design potential alternate

Why is it important to design potential alternate strategies?

Identify three leadership traits from the trait theory you

Identify three leadership traits from the Trait Theory you feel you do or do not possess. You may identify three that you do possess, or three that you do not possess, or one you possess and two you do not possess, etc. ...

What resources are you most likely to use for research in a

What resources are you most likely to use for research in a workplace? Discuss secondary resources, and primary resources including observation and surveys. What is a credible resource?

Do you all see patient demographics as a critical point for

Do you all see patient demographics as a critical point for health care organizations to consider? Do you all see - possibly - more health screenings being provided to facilitate this process?

Explain and compare the advantages of servlets java desktop

Explain and compare the advantages of Servlets, Java Desktop Applications and Web Start.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As