Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- /etc/network/interfaces
- 서버설정
- 이터레이터
- Kernighan의 C언어 프로그래밍
- 티스토리 쿠키 삭제
- GIT
- 리눅스
- 자료구조와 함께 배우는 알고리즘 입문
- iterator
- 처음 만나는 AI수학 with Python
- ㅒ
- 알파회계
- 데비안
- 자바편
- 페이징
- 선형대수
- 구멍가게코딩단
- 스프링부트핵심가이드
- network configuration
- d
- 처음 만나는 AI 수학 with Python
- 네트워크 설정
- 목록처리
- 자료구조와함께배우는알고리즘입문
- baeldung
- 코드로배우는스프링웹프로젝트
- 스프링 시큐리티
- 코드로배우는스프링부트웹프로젝트
- 친절한SQL튜닝
- resttemplate
Archives
- Today
- Total
bright jazz music
월 비용계산 본문
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
'기타 > 기타' 카테고리의 다른 글
금리계산 (원리금균등상환) (0) | 2022.06.23 |
---|
Comments