Please calculate the following:
1) Calculate the salary of all employees and print them basic, HRA, allowance,
tax and education cress in pay-slip.
2) Calculate the education cress of all employees in the company and print them
3) Display the 2nd highest net salary (salary after all deductions) among all
employees
4) Rank the employees from highest to lowest. Please add a rank field in display
grid. If 2 employees are drawing the same salary, their rank will be same.
Following are the employees and their salary details:
1) Rajiv
-- Basic - Rs. 5500
-- HR - Rs. 2500
-- Allowance - Rs. 1000
2) Meghan
-- Basic - Rs. 5500
-- HR - Rs. 2500
-- Allowance - Rs. 1000
3) John
-- Basic - Rs. 15500
-- HR - Rs. 7500
-- Allowance - Rs. 4000
4) Brian
-- Basic - Rs. 10500
-- HR - Rs. 5500
-- Allowance - Rs. 3000
5) Rajiv
-- Basic - Rs. 35500
-- HR - Rs. 13500
-- Allowance - Rs. 10000
Create the code in MVC model. Keep the model, view and controller layers separate.