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

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.:- M92723556
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Management

Explain the criteria to be assessed when selecting a target

Explain the criteria to be assessed when selecting a target market for export of goods.

What are costcos key success factors ksfs which of the 11

What are Costco's key success factors (KSFs)? Which of the 11 sociotechnical principles can be seen in Costco?

How do you apply the five components of the information

How do you apply the five components of the information systems to an information systems application like "online bill pay" system offered by many banks.

A project requires an initial investment of 800 and grants

A project requires an initial investment of $800 and grants cash flows of $100 at the end of year 1, $200 at the end of year 2, $300 at the end of year 3 and $400 at the end of year 4. At a discount rate of 20 percent, i ...

How should facebook and other companies protect privacy

How Should Facebook and Other Companies Protect Privacy While Letting People Share Their Information Between Apps and Services?

Match the types of control and tools for controlling1

Match the types of control and tools for controlling. 1) Feedback control 2) Concurrent control 3) Precontrol is 4) Budgets, performance reports, and personal observation are A.occurs while the work is taking place. B.fo ...

What are the objectives and concepts of planning a

What are the objectives and concepts of planning a wedding?

What type of jobsorganizations naturally fall under an

What type of jobs/organizations naturally fall under an egalitarian philosophy? Which ones may struggle with this? Is there a substitute for egalitarianism that can get some of the effect for those organizations that don ...

Explain why having a cultural profile of people in the

Explain why having a cultural profile of people in the official's cultural group could help you avoid a breakdown in communication in this situation. How can you get through the intercultural impasse and obtain a contrac ...

Listed below is a total cost for a sample of eight

Listed below is a total cost for a sample of eight Caribbean weddings. $9,700 $9,400 $11,700 $9,000 $9,100 $10,500 $ 9,100 $9,800 At the 0.05 significance level, is it reasonable to conclude the mean wedding cost is less ...

  • 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