Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding project Given code: FEDERAL TAX CALCULATION FUNCTION def federal_tax(P1,P2): if P2 == 'S': if P1

Coding project

Given code:

FEDERAL TAX CALCULATION FUNCTION def federal_tax(P1,P2): if P2 == 'S': if P1 <= 10000.00: result = P1*.05 elif P1 <= 50000.00: result = 500 + (P1 - 10000)*.105 else: result = 4700 + (P1 - 50000)*.2025 else: if P1 <= 25000.00: result = P1*.0625 elif P1 <= 90000.00: result = 1562.50 + (P1 - 25000)*.1075 else: result = 8550 + (P1 - 90000)*.225 return result

#EMPLOYEE INFORMATION LISTS Empl_Number_List=[24739,29511,46908,89291,47006,39666,32251,50991,25647,52983,18463,99066,58881,79658,63083,80335,44468,43095,65034] Empl_Name_List=['Simpson, Homer','Flanders, Ned','Seinfeld, Jerry','Tanner, Danny','Banks, Phillip','Brady, Marcia','Flintstone, Wilma','Bradshaw, Carrie','Griffith, Andy','Cleaver, June','Fletcher, Jessica','McGee, Fibber','Brown, Doc','Summers, Buffy','Halliwell, Prue','Malone, Sam','Barone, Debra','Tanner, Stephanie','Taylor, Tim'] Empl_Addr_1_List=['742 Evergreen Terrace','744 Evergreen Terrace','129 W 81st St, #5A','1882 Gerard Street','508 Saint Cloud Road','4222 Clinton Way','342 Gravelpit Terrace','245 East 73rd Street','322 Maple Drive','485 Maple Drive','698 Candlewood Lane','79 Wistful Vista','1640 Riverside Drive','1630 Revello Drive','1329 Carroll Ave','83 Beacon St','320 Fowler Street','1882 Gerard Street','510 Glenview'] Empl_Addr_2_List=['Springfield, IL 62704-4913','Springfield, MA 01119-2800','New York, NY 10024-7207','San Francisco, CA 94134-1259','Los Angeles, CA 90077-3427','Los Angeles, CA 90026-4164','Boulder, CO 80305-2341','Manhattan, NY 10023-2702','Mount Airy, NC 27030-3406','Mayfield, KY 42066-1139','Kennebunkport, ME 04046-6711','Des Moines, IA 50310-5565','Hill Valley, CA 93706-4735','Sunnydale, CA 94086-3293','Los Angeles, CA 90026-5110','Boston, MA 02108-2205','Lynbrook, NY 11563-3045','San Francisco, CA 94134-1259','Detroit, MI 48211-1069'] Empl_Marital_Status_List=['M','S','S','M','S','S','S','S','S','M','M','S','S','S','S','M','M','M','M'] Empl_Hourly_Payrate_List=[66.45,55.11,31.64,79.89,86.26,16.82,28.02,68.17,84.42,12.86,63.08,71.45,54.83,73.05,32.98,17.99,51.23,60.16,11.1] Empl_401K_Percent_List=[18.25,11.25,0,0,9.5,5.5,0,19,13.25,18,11.75,21,15.75,18.75,13.25,14.25,14.25,0,20.75]

######################################################################################### ##### D O N O T C H A N G E A N Y L I N E S A B O V E T H I S L I N E ##### ######################################################################################### ''' insert all of your code below '''

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

More Books

Students also viewed these Databases questions