Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

 

Home ] Up ]


 

Vacation Program

 

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.
 

All content on this site is free for private use only  |  Contributions are encouraged  |  Thank you to Netfirms for the free hosting  |  If copyright content is published here or links to certain content violates some right/law, contact the Webmaster to have it removed immediately.

 

Site launched: October 2005  |  Updated: July 20, 2006  |  Link exchange  |  Site map  |  Contact us