IMBC HR management has planned to implement a web based leave management system for their employees.
All full-time employees shall receive 17 days of personal leave for a year, along with the leave balance of the previous year.
Assume (N) is the leave balance of the previous year. Also update the total number of leave days received by the employee for the current year.
Write a Pseudocode to ask a user to type a number (N) between 0 and 20 (both included) so that he would obtain N+17 as his output.
On typing a wrong number, he must be asked to type the right one. This must continue until the user types in the right input.
Once a right number is typed, then N+17 would get processed.
Hint :
The value for 'N' should be got without checking if it is between 0 and 20.
If not again and again the input should be got until the condition is true.
So in this case use do..while loop
DO
READ number
UNTIL number>=0 && number<=20