Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # FUNCTION (PARAMETER)
- def StraightLine(Asset, Period, Start, End, Estimation):
- if Asset > 0 and Period > 0 and Start > 0 and End > 0:
- depreciation = float((Asset - Estimation) / Period)
- print("\n", " Depreciation/ Year : ", int(depreciation))
- print("\n |Year| Amount - Accummulation = Resid | \n")
- else:
- print(" Minimal Integer: 1")
- for x in range(Start, (End + 1)):
- accummulation = float(x/Period) * (Asset - Estimation)
- Resid = Asset - accummulation
- message = ' %d %.2f - %.2f = %.2f' % (x, Asset, accummulation, Resid)
- print(message)
- print("Depreciation : Straight Line Method")
- Asset = float(input("Cost of Bought: "))
- print("Period of Depreciation(Year): ")
- Period = int(input("Period (Integer): "))
- Start = int(input("Begin of Year (Integer): "))
- End = int(input("End of Year (Integer): "))
- Estimation = float(input("Residual value(Float): "))
- StraightLine(Asset, Period, Start, End, Estimation)
- # Depreciation: Straight Line
- # FUNCTION WITH PARAMETER
- # Pray 4 Uyghur: https://bylinetimes.com/2020/08/24/death-is-everywhere-millions-more-uyghurs-missing/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement