Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Design and develop a program that computes an employee’s income tax based on the following criteria:
- If the gross pay is less than €50000.00, an allowance of €25000 is given, i.e. no tax is paid on the first €25000, (assume minimum gross pay is €35000)
- If the gross pay is greater than or equal to €50000.00, an allowance of €20000 is given, i.e. no tax is paid on the first €20000.
- A Single person pays 20% tax – code for single is ‘s’
- A Married person pays 23% tax - code for married is ‘m’
- The program should ask the user to enter their employee identification number( store this as a String), name, address, marital status, s for single, m for married, this should be stored as a char in the program, and gross pay. (All strings should be input using nextLine())
- The program should then calculate and display the employee’s details, name , address, marital status, gross pay, net pay and total tax paid.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement