Question: Write this program in python!! Data to be input: Employee Name (first& last) Number of hours worked Hourly pay rate Married or Single (to determine
Data to be input: Employee Name (first& last) Number of hours worked Hourly pay rate Married or Single (to determine Federal tax rate)* State tax rate "Married tax rate 10%, Single tax rate 15% (use decision statement to test first letter only, make sure to change the capitalization to what you are testing). You may also want to use the Round function. Determine Access Code: Create and combine the following 3 strings to determine Access Code. You will use string functions, methods, and operators for this. String 1. Use integer division to divide the length of the name string by 3. Use the portion of the name that starts at that position number, and includes up to the character in position 7 (see 2 examples below) String 2. Use the last 3 letters, in upper case String 3. Use the min and max l Sample input and output Enter employee"s nane (first and 1lest)sSoooby Doo Enter nunber of hours worked this week: 34 Enter hourly pay rate: 22-85 Pleose enter Single or Married: Enter atate tax withholding zate:-05 Employee Nanes Boooby Doo Hours Worked: 34 Pay Rate1 $12.5 Gross Pays $436.90 Federal ithholding (15%); $65.53 tate ithho1ding (58): $22-84 Total Deduction: 87.37 Scooby Doo net pay check: $349.53 Enter employee's name (eirst and lest)s mes Nadison Enter nunber of hours worked this weeks 23 Enter hourly pay rate: 27. ried: M Enter state tax withholding rate: .s EnpLoyee Nane: Janes Madison Hours Worked: 11 Pay Rate: 27-50 Gross Fay: $302.50 Dedactiona: Federal Withholding (10%): 30.25 State Withholding (50%); $131.25 Total Deduation 5181.50 ames Nadison net pay check: $121.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
