Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

How to solve maths problems with examples

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago