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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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