Mr. Pawan works as a Programmer in "ABC Marketing Company" where he has designed a Salary generator software to generate the salary of salesman in which Name and Salary are entered by the user. A screenshot of the same is shown below :
Help him in writing the code to do the following:
Money will be deducted from the Gross Salary according to the facilities opted by the employee. When 'Net Salary' button is clicked, Net Salary should be calculated and displayed in the respective text field as per the given formulae:
Net Salary = Gross Salary - Deductions