diff --git a/README.md b/README.md index 45bc2d0..ca9945f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# 461437dae6bf4fdd80b8c8a64b192c2a - +# python hello-world diff --git a/main.py b/main.py new file mode 100644 index 0000000..6c5e505 --- /dev/null +++ b/main.py @@ -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) + } diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..55e8614 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +functions-framework==1.4.3 +markupsafe==2.0.1