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

Transcribed Image Text:### Vacation Policy at Major Tech Companies
**Facebook:**
- All employees earn **20 days** of vacation per year.
**Amazon:**
- New employees earn **10 days** of vacation per year.
- After **1 year**, this is increased to **15 days**.
**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**.
**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**.
**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.
### Programming Challenge
Write a function called `solution()` that takes a string and an integer. The string is the name of a company, and 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.)*

Transcribed Image Text:Below is a transcription of a Python code editor interface, which can often be seen in educational programming environments:
---
**Python Code Editor: File - scaffold.py**
```python
1 def solution(company, months):
2 # Your solution goes here.
```
- **Code Explanation:**
- The function `solution` is defined with two parameters: `company` and `months`.
- The comment `# Your solution goes here.` indicates where the user should implement their solution.
- **Interface Details:**
- The file path is displayed as `/home/scaffold.py`.
- The editor is set to use spaces for indentation, with a setting of 4 spaces (auto-managed).
- The status message indicates "All changes saved," confirming that any edits have been preserved.
- The interface includes a terminal section at the bottom, likely for input/output or command-line interactions.
This setup is common in coding challenges and exercises, where users are encouraged to write and test their code solutions within a structured environment.
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
