Compare commits
No commits in common. "v3" and "main" have entirely different histories.
15
main.py
15
main.py
@ -1,15 +0,0 @@
|
|||||||
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)
|
|
||||||
}
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
functions-framework==1.4.3
|
|
||||||
markupsafe==2.0.1
|
|
||||||
Loading…
Reference in New Issue
Block a user