In most companies the amount of vacation you receive depends on the number of ye
ID: 3538194 • Letter: I
Question
In most companies the amount of vacation you receive depends on the number of years you've been with the company. Create a C++ program that will allow the user to enter the number of years and you output the weeks of vacation according to the following:
0 years, 0 weeks vacation
1-5 years, 1 weeks vacation
6-10 years, 2 weeks vacation
11+ years, 3 weeks vacation
Prompt the user if they would like to enter another employee. Also Personalize your Program by naming your company!
Add Exception Handling
Explanation / Answer
#includeusing namespace std; int main() { int years; coutyears; if(years==0) coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.