Here is my psuedocode I am very rusty not sure how to start this.Just a little help to start this is all I need it has been a while

Pseudocode
*

``````* Calculate the straight line depreciation <This is done regardless for each asset type>
*    Until you actually set the BookValue of the asset, you can calculate the straight line and store the value
*    in a working variable
*
* Determine if the asset's depreciation was previously straight line by checking assetIsStraightLine() = true
*    If true
*       set the new book value based upon straight-line depreciation by calling setAssetBookValue()
*       exit method
*
* Determine the asset category by calling getAssetCategory ()
*
*    If the asset is Furniture, buildings, or office equipment
*       set assetIsStraightLine() = true
*       set the new book value based upon straight-line depreciation by calling setAssetBookValue()
*       exit method
*
* Calculate the double declining depreciation
*    Until you actually set the BookValue of the asset, you can calculate the double declining and store the value
*    in a working variable
*
* Determine if the straight-line is greater than the double declining
*    If straight-line is greater
*       set assetIsStraightLine() = true
*       set the new book value based upon straight-line depreciation by calling setAssetBookValue()
*    else
*       set the new book value based upon double declining depreciation by calling setAssetBookValue()
*
*    exit method``````

This is the calculations for the 2 methods of finding depreciation.
Straight-Line Depreciation Method

Cost – Residual Value
Monthly depreciation = -------------------------------
Useful life in months

Double-Declining-Balance Depreciation Method
First, compute the straight-line depreciation rate per year (calculated by dividing 1 by the number of years). Second, multiply the straight-line rate by 2 to compute the DDB rate. Third, multiply the DDB rate by the period's beginning asset book value (cost less accumulated depreciation). Ignore the residual value of the asset in computing depreciation by the DDB method, except during the last year. Fourth, if the DDB depreciation expense is less than the straight-line depreciation expense for that year, switch to using straight-line depreciation expense for the rest of the life of the item. In the example below in the fourth year the straight line depreciation expense exceeded the DDB depreciation expense, so we switched to using the straight-line expense. Fifth, If you didn't switch to using straight-line, the last year's depreciation is the amount needed to reduce the asset's book value to the residual value.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.