Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Eclipse Box Mart wants a new payroll application to generate pay stubs and pay checks for its employees. The program is to prompt for

image text in transcribedimage text in transcribedusing Eclipse

Box Mart wants a new payroll application to generate pay stubs and pay checks for its employees. The program is to prompt for the employee name, the hours worked in a week, and a position code. Calculations are as follows: 1. Hourly rate is determined by a position code where a cashier is paid $ 12.25/hr, clerk is paid $ 18.00/hr, and manager is paid $ 25.75/hour. 2. If the position code is not one of above, then print "Invalid code", and exit() 3. For everyone the hours over 40 in a week are considered to be overtime hours (note normal hours can be at most 40). 4. Normal pay is normal hours times hourly rate. 5. Overtime pay is overtime hours times hourly rate times 1 1/2 6. Gross pay is the sum of normal pay and overtime pay. 7. Federal tax is 10% of gross pay in excess of 500. 8. State tax is 3% of gross pay. 9. Net pay is gross pay less federal tax and less state tax. 10. Use startdate and enddate functions from the payperiod module to get the pay period dates. See module payperiod.py. 11. Use the paydate function from the payperiod module to get the date of the check. See module pay period.py. Enter employee name: John Smith Enter hours worked: 45 Enter position code: cashier BoxMart Pay Stub Employee Name: John Smith Pay Period: 01/14/2020 to 01/20/2020 Normal Hours Worked: Overtime Hours Worked: Hourly Wage: 40 hrs 5 hrs 12.25/hr $ Normal Pay: Overtime Pay: Gross Pay: Federal Tax: State Tax : Net Day: $ 490.00 $ 91.88 $ 581.88 $ 8.19 S 17.46 $ 556.23 Net Day: $ 556.23 Box Mart, Inc. 01/27/2020 Pay to: John Smith $ 556.23 Bonus 5 points When printing the pay check, print on the next line text of the amount of the pay check. For example: Box Mart, Inc. 01/27/2020 $ 556.23 Pay to: John Smith Five Hundred Fifty Six and 0.23 Make sure to print "Eleven", "Twelve", "Thirteen"... as appropriate when the tens column is a 1. Box Mart wants a new payroll application to generate pay stubs and pay checks for its employees. The program is to prompt for the employee name, the hours worked in a week, and a position code. Calculations are as follows: 1. Hourly rate is determined by a position code where a cashier is paid $ 12.25/hr, clerk is paid $ 18.00/hr, and manager is paid $ 25.75/hour. 2. If the position code is not one of above, then print "Invalid code", and exit() 3. For everyone the hours over 40 in a week are considered to be overtime hours (note normal hours can be at most 40). 4. Normal pay is normal hours times hourly rate. 5. Overtime pay is overtime hours times hourly rate times 1 1/2 6. Gross pay is the sum of normal pay and overtime pay. 7. Federal tax is 10% of gross pay in excess of 500. 8. State tax is 3% of gross pay. 9. Net pay is gross pay less federal tax and less state tax. 10. Use startdate and enddate functions from the payperiod module to get the pay period dates. See module payperiod.py. 11. Use the paydate function from the payperiod module to get the date of the check. See module pay period.py. Enter employee name: John Smith Enter hours worked: 45 Enter position code: cashier BoxMart Pay Stub Employee Name: John Smith Pay Period: 01/14/2020 to 01/20/2020 Normal Hours Worked: Overtime Hours Worked: Hourly Wage: 40 hrs 5 hrs 12.25/hr $ Normal Pay: Overtime Pay: Gross Pay: Federal Tax: State Tax : Net Day: $ 490.00 $ 91.88 $ 581.88 $ 8.19 S 17.46 $ 556.23 Net Day: $ 556.23 Box Mart, Inc. 01/27/2020 Pay to: John Smith $ 556.23 Bonus 5 points When printing the pay check, print on the next line text of the amount of the pay check. For example: Box Mart, Inc. 01/27/2020 $ 556.23 Pay to: John Smith Five Hundred Fifty Six and 0.23 Make sure to print "Eleven", "Twelve", "Thirteen"... as appropriate when the tens column is a 1

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions