This code will calculate an Asset Depreciation. It has 2 methods to calulate it:
- Straight Line Method
- Sum of Digits Method
The code asks the user which of the above methods to use. It then asks for the asset value and the salvage value. Once these values are entered, it will proceed to do the calculation and print the results to screen.
Sample output of the Straight Line Method:
Sample output of the Sum of Digits method:
This code is written as a main block of code. There is another variation where the code is splitted in functions here.