| 1. |
Design a program to calculate how much
time-off employees qualify for and display the following messages: |
| 1.1 |
"You are entitled to three weeks
leave" if employee has 5 years or more service |
| 1.2 |
"You are entitled to two weeks
leave" if employee has less than 5 years service but more than 1
year |
| 1.3 |
"You are entitled to one week
leave" if employee has less than 1 year service |
| 2. |
Only full-time employees qualify for
leave. If the employee is part-time, display the message "You
are not entitled to leave" |
| 3. |
The employee's status is entered in the
strStatusTextBox and years of service is entered in the
strServiceYearsTextBox |
| 4. |
Store the textbox values in the strStatus
and intYears variables. |
| 5. |
Display the appropriate message in the
MsgLabel control. |
| 6. |
Use an If...ElseIf...Else or Case selection
structure. |