3.3 Math Expressions HW
HW
Code Runner Challenge
HOMEWORK HACK
View IPYNB Source
# CODE_RUNNER: HOMEWORK HACK
# Recovery Center Cost Report
cost_per_session = 35
sessions_per_week = 3
weeks_per_month = 4
enrollment_fee = 75
# 1. Calculate weekly cost
weekly_cost = cost_per_session * sessions_per_week
# 2. Calculate monthly cost
monthly_cost = weekly_cost * weeks_per_month
# 3. Calculate total cost with fee
total_cost_with_fee = monthly_cost + enrollment_fee
# 4. Calculate average daily cost
average_daily_cost = monthly_cost / 30
# Print all results with labels
print("Weekly Cost: ", weekly_cost)
print("Monthly Cost: ", monthly_cost)
print("Total Cost With Fee: ", total_cost_with_fee)
print("Average Daily Cost: ", average_daily_cost)
Lines: 1
Characters: 0
Output
Click "Run" in code control panel to see output ...