From 1d9e4c9523b257041c2c6e745453cfb1b86f1dcd Mon Sep 17 00:00:00 2001 From: FunctionsAPI Date: Sun, 29 Jun 2025 12:36:00 +0000 Subject: [PATCH] Automatic push from FunctionsAPI --- README.md | 3 +-- main.py | 15 +++++++++++++++ requirements.txt | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 main.py create mode 100644 requirements.txt 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