16 lines
486 B
Python
16 lines
486 B
Python
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)
|
|
}
|