Question: CODE MUST BE IN JAVA 1. All employees in a company, by default, start with 2 weeks of vacation per year. If the employee has

CODE MUST BE IN JAVA

CODE MUST BE IN JAVA 1. All employees in a company, by

1. All employees in a company, by default, start with 2 weeks of vacation per year. If the employee has served the company for 3 years, (s)he gets 3 weeks of vacation. Then, every additional year of service gets 2 additional vacation days, upto 6 years of service. Beyond 6 years, employees get 1 additional vacation day for each year of service, write the code for vacationDays() method: get # of years of service as a parameter and return the # of vacation days. Note: one week of vacation translates to 5 days. There is no need to code main() or get user input or print output etc. static int vacationDays (int years) (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!