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.)

icon
Related questions
Question
100%
Please explain ur thought process. Starting the code like shown
ed Ed Lessons
Online Python Compiler (...
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:
P Built-in Functions - Pyt...
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:
Beginner Python Tutorial...
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.)
CO
Transcribed Image Text:ed Ed Lessons Online Python Compiler (... 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: P Built-in Functions - Pyt... 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: Beginner Python Tutorial... 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.) CO
Challenge
+
scaffold.py
1 def solution (company, months):
# Your solution goes here.
/home/scaffold.py Spaces: 4 (Auto)
Terminal
Submissions
I
> O
All changes saved
✓ Mark
Transcribed Image Text:Challenge + scaffold.py 1 def solution (company, months): # Your solution goes here. /home/scaffold.py Spaces: 4 (Auto) Terminal Submissions I > O All changes saved ✓ Mark
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer