Python Program Project - A local small business has hired

Question # 00650999
Subject: Computer Science
Due on: 12/07/2023
Posted On: 12/07/2023 01:55 AM
Tutorials: 1
Rating:
4.9/5
Question Dot Image

UDC Python Program Project

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...

Dot Image
Getsolution Posted By :
Questions: 15169 Tutorials: 15168
Tutorials for this Question

Python Program Project - A local small business has hired

Tutorial # 00649884
Posted On: 12/07/2023 02:09 AM
Feedback Score: Not rated yet!
Purchased By: 2
Getsolution
Posted By:
Questions:
15169
Tutorials:
15168
Report this Tutorial as Inappropriate
Tutorial Preview
The solution of Python Program Project - A local small business has hired...
Attachments
Python_Program_Project_-_A_local_small_business_has_hired.ZIP (18.96 KB)

Great! We have found the solution of this question!

Related Questions
Examine the several different types of data insights that occur
Question Examine the several different types of data insights that occur in big data analytics:  ? Offer novel knowledge  ? Provide causation relationships  ? Add a competit …
Computer science - Is virtualisation cost effective
Computer science question Is virtualisation cost effective and does it support green IT? Contents Introduction Is Virtualisation cost effective? Running out of space? Needing Virtualisa …
Studying Computing involves developing both subject
Studying Computing involves developing both subject-specific and transferable skills. Describe the skills you have used prior to university, and discuss how you would expect those skills to develop wh …
Computer Science - Discuss the critical characteristics
Computer Science Question Assignment 1 - Question 1: Discuss the critical characteristics of communication channels in data communications. Explain how bandwidth and communication medium affe …
List and explain two browser add-ons(plug-ins)that improve the security
1- List and explain two browser add-ons(plug-ins)that improve the security of a user’s browser. Why are these features not built-into the browser? 2- What are two security risks associated wi …
How are browsers being used to mine crypto currency
Part A: How are browsers being used to mine crypto currency? (1 pt) Find an example of malvertising. Provide a screen shot of the malvertising. (2 pts) Provide the details on how and where you …
What are the seven categories of cybersecurity functions in the NICE
security awareness What are the seven categories of cybersecurity functions in the NICE Cybersecurity Workforce Framework (https://www.nist.gov/itl/applied-cybersecurity/nice/resources/nice-cybe …
The Computer Mouse - Once a nondescript box perched on a large
The Computer Mouse Once a nondescript box perched on a large ball bearing, today the computer mouse comes in a wide range of shapes with a variety of capabilities. There are cordless mice, ergonomi …
CMSC350 Program that accepts an arithmetic expression
CMSC350 Program that accepts an arithmetic expression The second programming project involves writing a program that accepts an arithmetic expression of unsigned integers in postfix notation and bu …
Week 6 Discussions - Local Security Good Practices
Week 6 Discussions Please respond to at least two main topics  1. Local Security Good Practices Discuss in detail several effective local security practices to harden your Linux distribu …
Recent Questions
Walden NURS4100 Complete Course Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 1 Discussion IDENTIFY A PRACTICE PROBLEM Writing a clear evidence-based practice (EBP) questio …
Walden NURS4100 Week 4 Quiz Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 4 Quiz Question 1 The purpose of this study was to: Describe patient safety incidents from e …
Walden NURS4100 Week 3 Quiz Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 3 Quiz Question 1 The purpose of the study was to: Evaluate the effectiveness of a process …
Walden NURS4100 All Assignments Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 1 Assignment EVIDENCE-BASED PROBLEM AND QUESTION To begin your EBP project for the course, you …
Walden NURS4100 Week 5 Assignment Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 5 Assignment EBP PROJECT PAPER For this Assignment Review the following: Walden paper te …
Walden NURS4100 Week 4 Assignment Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 4 Assignment APPRAISAL GUIDE The assignment for this week is to submit Appraisal Guides for tw …
Walden NURS4100 Week 2 Assignment Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 2 Assignment INDING THE RESEARCH EVIDENCE Continuing on with step one of the Impact Model is t …
Walden NURS4100 Week 1 Assignment Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 1 Assignment EVIDENCE-BASED PROBLEM AND QUESTION To begin your EBP project for the course, you …
Walden NURS4100 All Discussions Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 1 Discussion IDENTIFY A PRACTICE PROBLEM Writing a clear evidence-based practice (EBP) questio …
Walden NURS4100 Week 6 Discussion Latest 2024
NURS-4100-1/NURS-4100C-1/NURS-4100A-1  Quality & Safety Thru Practice-Spring 2024 Week 6 Discussion IMPLEMENTING AND EVALUATING EVIDENCE-BASED PRACTICE CHANGE IN HEALTH CARE SETTINGS …