From an insurance company a person takes a policy of 1 lakh rupees. If he takes this insurance for 25 years he has to pay a premium of Rs.4000/year

From an insurance company a person takes a policy of 1 lakh rupees. If he takes this insurance for 25 years he has to pay a premium of Rs.4000/year if for 30 years the a premium of Rs.3000/year. If the person is a lady and a housewife the 5% deduction will be given but if a workingwoman the no deduction will be given. Write a servlet, which takes input from an HTML client page and calculates and outputs the premium amount.

Code for From an insurance company a person takes a policy of 1 lakh rupees. If he takes this insurance for 25 years he has to pay a premium of Rs.4000/year in OOAD