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

  Space systems technologies case analysis

Establishing the X-Prize vehicles into a standalone program or and establishing a portfolio of X-Prize vehicles

  Determining the success of facebook

You must also list and briefly describe at least Six economic issues from this course that apply to your topic. These issues may come from the list below or you may use others you've learned in this course:

  Human resource competency study

How would the HR skills identified in the Human Resource Competency Study aid an HR executive in assessing potential outsourcing partners?

  Motivating students for training

Show some techniques that may be used in course design to help motivate students who attend training as a requirement and not because they want to be there. Please include references.

  Explain how the objectives support management success

Did the student proper explain how the objectives support management success and the risks/challenges that may arise is these objectives

  Fais support management by exception

How does an FAIS support management by exception? How does it support on- demand reports?

  Sustain the joint profit-maximizing prices

Suppose the two stores are in a repeated relationship, trying to sustain the joint profit-maximizing prices calculated in part {b). They print new menus each month and thereby commit themselves to prices for the whole month.

  Which of the five practices is the least natural for you

Which of the five practices is the least natural for you, and why is this so? What contributed to this being the "least" among the practices in your life.

  Differentiated the structure of the selected organization

Evaluate how organizational functions (such as marketing, finance, human resources, and operations) influence and determine the organizational structure of your selected organization.

  What are two classes of software

What are two classes of software? What is an example of each?

  Present mix of ca s and bookkeepers optimal

If the department's objective is to maximize tax revenue collected, is the present mix of CA s and bookkeepers optimal?

  What is the principle strategy of an exclusive

1. What is the principle strategy of an exclusive (trade) union in order to increase wages of its members?

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