Question: ---------- MUST BE IN PYTHON ---------- Financial application: Payroll & Access Code creation For this assignment, you will create a payroll program for a small

---------- MUST BE IN PYTHON ----------

Financial application: Payroll & Access Code creation

For this assignment, you will create a payroll program for a small startup company. You will design then write a Python program (named: LastnameFirstInitial_PA2) to calculate the total net pay, access code, and PTO earnings using the following information. Your program should function identically to the examples below.

Data to be input by the user:

Employee Name (first and last)

Number of hours worked

Hourly rate

Federal tax rate

State tax rate

Determine Access Code: Create and combine the following 4 strings to determine the users initial Access Code (beware of extra spaces). You will use string functions, methods, and operators for this.

String 1. Use the sixth and seventh letters from the users full name

String 2. Use integer division to divide the length of the first name by 2. Use the portion of the full name that starts at that position number, and includes up to the character in position 9 (see examples below)

String 3. Get the max letter/character from the last name; display in uppercase

String 4. Use the last 5 characters of the first name

Calculate PTO (Paid Time Off) If an employee works more than 32 hours, they will earn PTO. An employee earns .75 hours PTO per hour worked.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!