kimpro82 / MyLegacyPractice

Old School Party!
1 stars 0 forks source link

Fortran : Depreciation Calculator #15

Closed kimpro82 closed 7 months ago

kimpro82 commented 7 months ago

Run

gfortran -o main DepreciationCalculator.f95
Enter the initial cost of the asset           : 11000
Enter the salvage value of the asset          : 1000
Enter the useful life of the asset (in years) : 5

  Year  Depreciation Expense  Accumulated Depreciation          Book Value
     1               2000.00                   2000.00             9000.00
     2               2000.00                   4000.00             7000.00
     3               2000.00                   6000.00             5000.00
     4               2000.00                   8000.00             3000.00
     5               2000.00                  10000.00             1000.00