Using the dialog boxes in the JOptionPane class, write a program that calculates and prints the monthly paycheck for an employee. Use the class name “LastnameClasscodeFinal1”. The net pay is calculated after taking the following deductions: a) Federal Income Tax: 15% b) State Tax: 3.5% c) Social Security Tax: 5.75% d) Medicare/Medicaid Tax: 2.75% e) Pension Plan” 5% f) Health Insurance: $ 75.00 Your program should prompt the user to input the gross amount and the employee name. Format the output to have two decimal places. A sample output follows: Juan Dela Cruz Gross Amount: $ 3575.00 Federal Tax: $ 536.25 State Tax: $ 125.13 Social Security Tax: $ 205.56 Medicare/Medicaid Tax: $ 98.31 Pension Plan: $ 178.75 Health Insurance: $ 75.00 Net Pay: $ 2356.00
Using the dialog boxes in the JOptionPane class, write a
monthly paycheck for an employee. Use the class name “LastnameClasscodeFinal1”. The net
pay is calculated after taking the following deductions:
a) Federal Income Tax: 15%
b) State Tax: 3.5%
c) Social Security Tax: 5.75%
d) Medicare/Medicaid Tax: 2.75%
e) Pension Plan” 5%
f) Health Insurance: $ 75.00
Your program should prompt the user to input the gross amount and the employee name. Format
the output to have two decimal places. A sample output follows:
Juan Dela Cruz
Gross Amount: $ 3575.00
Federal Tax: $ 536.25
State Tax: $ 125.13
Social Security Tax: $ 205.56
Medicare/Medicaid Tax: $ 98.31
Pension Plan: $ 178.75
Health Insurance: $ 75.00
Net Pay: $ 2356.00
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images