Advertisement
Guest User

Untitled

a guest
Oct 11th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Design and develop a program that computes an employee’s income tax based on the following criteria:
  2.  
  3. 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)
  4.  
  5. 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.
  6.  
  7. A Single person pays 20% tax – code for single is ‘s’
  8. A Married person pays 23% tax - code for married is ‘m’
  9.  
  10. 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())
  11.  
  12. 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