In this assignment, you are required to develop a web application for an Employee System. This system consists of two main features: Employee salary and employee leave. The first feature (salary) gives detailed information of an employee’s salary including basic salary, allowances, and bonus. The second feature (leave) allows employees to retrieve information regarding their annual leave and get leave in case they need to do so.
Requirements:
• Employee class must be selected – show a message if not selected.
• Employee name must be selected – show a message if not selected.
• If an employee clicks on Give Bonus button, a message must be shown that says “You must be an admin”.
• If the bonus is not in the range of 2 to 6%, a message must be shown that says “The bonus must be in the range of 2 to 6%”.
so basically that's the project I have done it but am facing a problem with point number 3 which is If an employee clicks on Give Bonus button, a message must be shown that says “You must be an admin”.
What I have tried:
I have tried everything but am not able to connect them.
can someone help me fix the issue?