Commit 3e846885 authored by MichaelAng's avatar MichaelAng

[ban265] hw2

parent c68a7103
...@@ -7,4 +7,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt ...@@ -7,4 +7,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY / ./ COPY / ./
ENTRYPOINT ["python", "main.py"] ENTRYPOINT ["python"]
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,12 @@ exec: ...@@ -14,7 +14,12 @@ exec:
.PHONY: run .PHONY: run
run: run:
$(DOCKER_BASE_CMD) \ $(DOCKER_BASE_CMD) \
ban265 ban265 "main.py"
.PHONY: run_hw2
run_hw2:
$(DOCKER_BASE_CMD) \
ban265 "hw2.py"
.PHONY: fmt .PHONY: fmt
fmt: fmt:
......
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment