Guidelines of good program design

Assignment Help Business Management
Reference no: EM131891720

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.

Reference no: EM131891720

Questions Cloud

Jeopardize and compromise a database : Confidentiality, integrity, and availability are the three common security goals. Select at least three security vulnerabilities that could jeopardize
How firms use customer relationship management : Chapter 2 describes how firms use Customer Relationship Management (CRM) to help manage their relationships with their customers.
List and describe the major functional areas of your company : List and describe the major functional areas of your company; Raw Materials, R&D, Production/Manufacturing, Distribution, Sales etc.
Problems associated with a reactive risk strategy : Provide five examples from other fields that illustrate the problems associated with a reactive risk strategy.
Guidelines of good program design : Remember to follow the guidelines of good program design. Make sure to use meaningful variable names, include comments as needed
Discuss an affirmative action plan : What type of leadership style might work in this organizational setting? How will you measure success? Why?
Automated checkout program designed : A local department store hires you to write the automated checkout program designed specifically for their express checkout lane.
Discuss the organization strategic objectives : At the end, you should have a workable training program in place to address a theoretical organizational performance deficiency.
Linkage of leadership-ethics and innovation : Please explain the linkage of leadership and ethics and how they can drive innovation within an organization.

Reviews

Write a Review

Business Management Questions & Answers

  Domestic assignment to overseas assignment

Propose two ways that HR can prepare its employees for the changes involved with moving from a domestic assignment to an overseas assignment. Respond and evaluate another learner's comment. Ground students will do this through discussion.

  Define either an adverse selection or moral hazard problem

Define either an adverse selection or moral hazard problem a company is facing. Define what is the source of the asymmetric information?

  Professional and concise powerpoint presentation

There are two parts to this project: 5-8page paper and a professional and concise PowerPoint Presentation.

  Double coincidence of wants and idea of transaction costs

If so, explain your answer in terms of the double coincidence of wants and the idea of transaction costs. Also, explain the trades that will take place with two producers who wants all four good at the end.

  Fundamentals of psychology in business amp personalityi

fundamentals of psychology in business amp personalityi need assistance in answering the following 4 questions.1

  Benefit an organization and business

Explain how unethical behavior can benefit an organization and business.

  Profit goal of business in free enterprise system

Can willingness to pay under these circumstances be reconciled with the profit goal of a business in a free enterprise system? Explain your answer.

  Purpose of evaluation in performance technology

What is the purpose of evaluation in performance technology? Briefly explain the four types of evaluation commonly employed in performance evaluation.

  Consumption of a chocolate cake on that day

Between Tom and John, who is happier in terms of the satisfaction derived from their actions related to the consumption of a chocolate cake on that day?

  How you personally felt about the leader

How did it affect the leader's ability to be an effective leader? How did it change how you personally felt about the leader?

  Describe three situations involving nonverbal communication

Describe three situations involving nonverbal communication that you observed or experienced between a manager and subordinate

  Retrieve the interview with kahneman

Retrieve the interview with Kahneman, in the March 2012 Gallup Management Journal titled The Truth About How We Think

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