Math Problem Statement
Paycheck Your homework is to write the getAmount method of the Paycheck class. This method should return the amount of money for a paycheck. If you’ve ever had a job and looked closely at a paycheck, you’ll realize that computing the amount of a paycheck is actually somewhat complicated. • Your “base pay” is the number of hours you’ve worked multiplied by your hourly rate. • If you have worked more than forty hours in a week, you earn “over time pay”. For each hour you work beyond forty hours, you earn another 50% of your hourly rate. (That is, you earn 1.5 times your hourly wage for each hour after forty hours.) • Taxes are then deducted from your paycheck, according to the table below. Total base pay, including overtime Percent deducted from paycheck pay < 200 11% 200 ≤ pay < 400 15% 400 ≤ pay < 600 18% 600 ≤ pay 24% • In addition, $14 is deducted from your paycheck for “union dues.” (You cannot have a negative paycheck, so if your paycheck before deducting union dues was less than $14, your total paycheck will be $0.)
Solution
Ask a new question for Free
By Image
Drop file here or Click Here to upload
Math Problem Analysis
Mathematical Concepts
Algebra
Percentages
Conditional Logic
Formulas
Base Pay = Hours Worked * Hourly Rate
Overtime Pay = (Hours Worked - 40) * Hourly Rate * 1.5
Tax Deduction = Total Pay * Tax Rate
Final Pay = Taxed Pay - Union Dues
Theorems
-
Suitable Grade Level
Grades 10-12
Related Recommendation
Income Calculation and Tax Computation for Anne with Overtime, Loans, and Deductions
Calculate Bonuses, State, and Federal Taxes from Profits of $103,000
Calculate Paycheck with 22% Increase Based on Past Earnings
Pay Stub Analysis Worksheet - Total Earnings, Deductions, and Net Pay Calculation
Exempt Meal Allowance Calculation Based on Minimum Wage