Automatic push from FunctionsAPI
This commit is contained in:
parent
fc5824d755
commit
1d9e4c9523
15
main.py
Normal file
15
main.py
Normal file
@ -0,0 +1,15 @@
|
||||
def calculate_raise_summary(name: str, salary: float):
|
||||
"""
|
||||
Takes employee name and salary as input,
|
||||
returns a yearly salary summary including a 15% raise.
|
||||
"""
|
||||
raise_percentage = 15
|
||||
expected_raise = salary * (raise_percentage / 100)
|
||||
new_salary = salary + expected_raise
|
||||
|
||||
return {
|
||||
"employee_name": name,
|
||||
"yearly_salary": round(salary, 2),
|
||||
"expected_raise": round(expected_raise, 2),
|
||||
"new_salary": round(new_salary, 2)
|
||||
}
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
functions-framework==1.4.3
|
||||
markupsafe==2.0.1
|
||||
Loading…
Reference in New Issue
Block a user