diff --git a/Dockerfile b/Dockerfile index 91f60ef08416038df45b9b14fb3f5b1d6085d86f..a93114d521fbfd41090ed513a06e0aec2a03fd98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt COPY / ./ -ENTRYPOINT ["python", "main.py"] \ No newline at end of file +ENTRYPOINT ["python"] \ No newline at end of file diff --git a/Makefile b/Makefile index ac825ae809888b2594506a34b5f70c63cd1841b5..7ac6929ebea6515a22c4fa6a592dad4a16a19483 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,12 @@ exec: .PHONY: run run: $(DOCKER_BASE_CMD) \ - ban265 + ban265 "main.py" + +.PHONY: run_hw2 +run_hw2: + $(DOCKER_BASE_CMD) \ + ban265 "hw2.py" .PHONY: fmt fmt: diff --git a/hw2.py b/hw2.py new file mode 100644 index 0000000000000000000000000000000000000000..4325a70fe071dedc1c58f5ea929aff4fb3089a95 --- /dev/null +++ b/hw2.py @@ -0,0 +1,27 @@ +# Ang, Michael +# BAN 265 A +# Homework 2 +# 2024-02-07 + +# Question 1 +book = 8.99 +tax_rate = 0.07 + +v_payment = round(book + book * tax_rate, 2) +print(v_payment) + +# Question 2 +product_code = "38BEE27" + +v_industry_code = product_code[0:2] +v_class_type = product_code[2] + +print(v_industry_code) +print(v_class_type) + +# Question 3 +weight = 60.0 # kg +height = 1.7 # meter + +v_bmi = round(weight / height**2, 2) +print(v_bmi) \ No newline at end of file