Question: URGENT Create a C++ program that calculates and displays an employees number of eligible vacation days based on their years of service at a company.
URGENT
Create a C++ program that calculates and displays an employees number of eligible vacation days based on their years of service at a company. The program should derive the number of vacation days using the information in the following table:
| Years of Service | Eligible Vacation Days |
| Less than 5 years | 10 days |
| 5 -10 years | 15 days |
| Over 10 years | 20 days + (# of years over 10 years) x 50% |
getEmployeeNameAndYears(): a void function that asks for the employees full name and Number of Years of Service. Use pass-by-reference to send these two items to main(). (10 points)
calcVacationDays(): a value returning function that calculates and returns the number of Eligible Vacation Days to main(). (5 points)
The main() function should display the Employees full name and number of Eligible Vacation Days on the computer screen. (5 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
