#K81442. Year-End Bonus Eligibility Checker
Year-End Bonus Eligibility Checker
Year-End Bonus Eligibility Checker
An employee is eligible for a year-end bonus if they meet all of the following criteria:
- The number of completed projects p is at least 5, i.e. \(p \ge 5\).
- The average performance rating r is at least 4.0, i.e. \(r \ge 4.0\).
- The number of years with the company y is at least 2, i.e. \(y \ge 2\).
Your task is to read three numbers from stdin
representing \(p\), \(r\), and \(y\) respectively, and output Eligible
if all conditions are met, otherwise output Not Eligible
.
inputFormat
The input contains a single line with three space-separated values:
- p: an integer representing the number of completed projects.
- r: a float representing the average performance rating.
- y: an integer representing the number of years with the company.
Example: 6 4.5 3
outputFormat
Output a single line to stdout
which is either Eligible
if the employee meets all the criteria, or Not Eligible
otherwise.
6 4.5 3
Eligible