Question: The program will calculate an employees net pay after making the following deductions: Federal Income Tax: 15% State Tax: 3.5% Social Security Tax: 5.75% Medicare/Medicaid
The program will calculate an employees net pay after making the following deductions:
Federal Income Tax: 15%
State Tax: 3.5%
Social Security Tax: 5.75%
Medicare/Medicaid tax: 2.75%
Pension Plan: 5%
Health Insurance: $75.00
(HINT: These would be great constants.)
Your program must prompt the user using the JOptionPane to input the employees name and the gross amount paid. Display the output to the console, as shown below. The output should begin with the employees name in all uppercase letters. Format your output using printf. You must use printf with its %, flags, and options: ,, d, f, and s. Output statements (System.out) should not include numerous blank spaces. The final line of the output should print net pay rounded. The program should correctly space and print amounts up to six dollar figures in length (e.g., 950,000.90)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
