229k views
2 votes
Code Problem 3 in Python 2.

Problem 3

Depreciation spreads the deductible cost of a fixed asset over its estimate life. The formula uses original cost c, salvage value s, and estimate life l:
dep(c, s, l) = c-s/l
dep(20000, 1000, 5) = 20000-1000/5 = 3800.0000
The annual depreciation expense is $3,800. Again if you would want to make your answers better, you can use the round(value, places) function. Where value is the value you wish to round and places is the number of places you wish to round to.

Please code in Python 2 and add “comments” explaining what the code is doing.

Code Problem 3 in Python 2. Problem 3 Depreciation spreads the deductible cost of-example-1
User Bijesh
by
8.2k points

1 Answer

1 vote

I've included my code in a picture below. I hope this helps.

Code Problem 3 in Python 2. Problem 3 Depreciation spreads the deductible cost of-example-1
User Gidrek
by
8.0k points

Related questions

1 answer
0 votes
165k views
asked Jan 26, 2024 61.3k views
SanRam asked Jan 26, 2024
by SanRam
7.7k points
1 answer
1 vote
61.3k views
asked Oct 17, 2024 120k views
Manmal asked Oct 17, 2024
by Manmal
7.7k points
1 answer
4 votes
120k views