Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def StraightLine(Asset, Start, End, Estimation):
- if Asset > 0 and Start > 0 and End > 0:
- depreciation = float((Asset - Estimation) / End)
- print("\n", " Depreciation/ Year : ", int(depreciation))
- print("\n |Year| Amount - Accummulation = Resid | \n")
- else:
- print(" Minimal Integer: 1")
- accummulation = float(Start/End) * (Asset - Estimation)
- Resid = Asset - accummulation
- message = ' %d %.2f - %.2f = %.2f' % (Start, Asset, accummulation, Resid)
- print(message)
- return Resid
- print("Depreciation : Straight Line Method")
- Asset = float(input("Cost of Bought: "))
- print("Period of Depreciation(Year): ")
- Start = int(input("Begin of Year (Integer): "))
- End = int(input("End of Year (Integer): "))
- Estimation = float(input("Residual value(Float): "))
- StraightLine(Asset, Start, End, Estimation)
- # Depreciation: Straight Line
- # METHOD (FUNCTION HAS RETURN)
- # 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