Focus on the functionality discussed above

Assignment Help Basic Computer Science
Reference no: EM131432618


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:


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: EM131432618

Comprehensive entity-relationship diagram

Submit a systems analysis for your project, including a comprehensive entity-relationship diagram (ERD). Although you may use any tool to complete the ERD, it is strongly re

What was the price of each type of candy

She spent a total of $40.10. Tommy spent $39.60 on 6 sticks of gum, 4 suckers, and 10 bags of jelly beans. Finally, Janet bought 7 sticks of gum, 10 suckers, and 8 bags of j

Currently using common data exchange and data management

•Identify at least two (2) industries that are currently using common data exchange and data management trends. Rank the success of each implementation based on the ease o

Describe this oscillation

The standard parameters result in a temperature slightly below 50. Find a set of parameters that move the temperature closer to 12. This model rarely results in a constant t

Create sheet sales and put reasonable numbers

Create a file: Pizza_by_First_Last.xlsm . Create sheet Sales and put reasonable numbers for prices (your choice), add create formulas. Put the % for sales tax in H1 (it is 8%

Write challenges with requirement elicitation

What is meant by "enterprise-wide analytics technology," and how can it play part in understanding business processes? Write down the challenges related with "requirement el

Agent based e-learning solution

Do a datailed study of the Case Study - Chapter 10 "Agent Based E-Learning Solution" and prepare a group report considering the groups created during lecture. Submit your re

Network against attacks and physical damages

Described the steps you will take to guard the network against attacks and physical damages. Described how you will use redundancy to provide 100 percent uptime for the BestPr


Write a Review

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