관리 메뉴

bright jazz music

월 비용계산 본문

기타/기타

월 비용계산

bright jazz music 2022. 6. 20. 11:26
import numpy as np

rent = float(input("rent: "))
credit_usage = float(input("last month credit usage: "))
tax = float(input("tax: "))
bank_credit_loan = float(input("bank credit loan: "))
student_loan = float(input("student loan: "))
housing_subscription = float(input("housing subscription: "))
youth_deposit = float(input("youth deposit: "))
telecommunication_cost = float(input("telecom telecommunication cost: "))
health_cost = float(input("health cost: "))


cost_list = [rent, credit_usage, tax, bank_credit_loan,
              student_loan, housing_subscription, youth_deposit,
              telecommunication_cost, health_cost]



#주프로그램부
cost_array = np.array(cost_list)
total_cost = sum(cost_array)
print()

print(f'total cost = {total_cost}')
monthly_income = float(input("Monthly income: "))
print()

print(f'{monthly_income} - {total_cost} = {monthly_income - total_cost}')

https://replit.com/@PhilipOttam/monthlycost

 

monthlycost

for calculating monthly cost

replit.com

 

'기타 > 기타' 카테고리의 다른 글

금리계산 (원리금균등상환)  (0) 2022.06.23
Comments