At Facebook: All employees earn 20 days of vacation per year. At Amazon: New employees earn 10 days of vacation per year. After 1 year this is increased to 15 days At Google: New employees earn 15 days of vacation per year. After 3 years this is increased to 20 days. After 5 years this is increased to 25 days At Apple: New employees earn 12 days of vacation per year. After 3 years this is increased to 15 days. After 4 years, and every year after that, it is increased by 1 more day. At Microsoft: New employees earn 15 days of vacation per year. After every 5 years this is increased by 5 more days, to a maximum of 30 days total per year. Write a function called solution () which takes a string and an integer. The string is the name of a company, the integer is the number of months someone has worked at that company. Return the number of vacation days that this person earns per year. (Disclaimer: For entertainment purposes only. The above numbers are not guaranteed to be accurate. Do not quote them.)
At Facebook: All employees earn 20 days of vacation per year. At Amazon: New employees earn 10 days of vacation per year. After 1 year this is increased to 15 days At Google: New employees earn 15 days of vacation per year. After 3 years this is increased to 20 days. After 5 years this is increased to 25 days At Apple: New employees earn 12 days of vacation per year. After 3 years this is increased to 15 days. After 4 years, and every year after that, it is increased by 1 more day. At Microsoft: New employees earn 15 days of vacation per year. After every 5 years this is increased by 5 more days, to a maximum of 30 days total per year. Write a function called solution () which takes a string and an integer. The string is the name of a company, the integer is the number of months someone has worked at that company. Return the number of vacation days that this person earns per year. (Disclaimer: For entertainment purposes only. The above numbers are not guaranteed to be accurate. Do not quote them.)
Related questions
Question
100%
Please explain ur thought process. Starting the code like shown
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images