Write a payroll calculation program

Assignment Help Computer Engineering
Reference no: EM132233433

Question: Payroll

A local small business has hired you to write 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: EM132233433

Questions Cloud

What is the cost of equity : Its WACC (weighted average cost capitol) is 9.4%, the tax rate is 35%, and the after tax cost of debt is 6.8%. What is the cost of equity?
Represent a hypothetical car production line : This program will represent a hypothetical car production line, which consists of a chassis (body of a vehicle) and wheels. These two components will be used.
What is the cost of the preferred stock : Snowbird LLC has a preferred stock that with an annual dividend of $3.25. If the current price of the preferred stock is $30, what is the cost of the preferred
Biggest differences in quality for goods-services delivery : Which of the following represents one of the biggest differences in quality for goods and services delivery?
Write a payroll calculation program : A local small business has hired you to write a payroll calculation program. The program only needs to calculate gross pay for an employee and display.
What type of culture is at the university of washington : ITS 835 What type of culture is at the University of Washington? Why is culture important to consider when implementing ERM?
What is the? bond yield to? maturity : The market price is ?$775 for a 17 year bond ?($1,000 par value) that pays 9 percent annual? interest, but makes interest payments on a semiannual basis
What is the current price of shuffle step stock : If the required rate of return is 7 percent, what is the current price of Shuffle Step stock?
Performance appraisal systems in future : How will you measure and determine the effectiveness of the current system and what would your recommendations be for performance appraisal systems in future.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Convert between us length and international length metrics

Write a Java GUI application to convert between US length metrics and the International length metrics.

  Questionthe averaging algorithm proposed by lamport et al

questionthe averaging algorithm proposed by lamport et al. works for a totally connected network of clocks. will such

  Explain an example of syntactic ambiguity not found

Give and explain an example of lexical ambiguity not found in this chapter. Give and explain an example of syntactic ambiguity not found in this chapter.

  Which wireless technology can transmit through solid objects

Which wireless technologies can transmit through solid objects? Which wireless technologies cannot?

  What speed-up do you get with 10 versus 100 processors

Calculate the speedups assuming the matrices grow to 100 by 100. Which are strong scaling and which are weak scaling in this exercise?

  Design the function "count" which takes a list of items

design the function "count" which takes a list of items and an item as arguments, and returns the number of times the item occurs in the list.

  Determine the annual cost of the heat losses from container

In a plant that manufactures canned aerosol paints, the cans are temperature-tested in water baths at 55°C before they are shipped to ensure.

  Write a function named difference for the set class

Write a function named difference for the Set class that returns the difference between two sets. The function should return pointer to a new set that has item.

  Give good justification that it is correct and that it runs

Give good justification (not a proof) that it is correct and that it runs in the prescribed time bounds.

  What is the symbol for the enter key

What is the symbol for the "Enter" Key? Set the default location to your own folder that you created (your name, or ITM1270). Make auto correction so that if you type "toin", it will be corrected to " tion".

  How your company will use enterprise resource planning

As an IT manager, discuss how your company will use Enterprise Resource Planning (ERP) to integrate the various functions of an entity.

  Implement a global eworksheet system to track attendance

Implement a global eWorksheet system to track attendance and work-hours for all associates across its global locations - Typical challenges/risks you foresee in the quality of project deliverables and the risk njanagement plan.

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