Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Wednesday, March 10, 2010

Calculation of depreciation , by using WDV method & scrap value at the end

Write a program in C which will get from the keyboard information about the name of the asset for which depreciation is to be calculated according to diminishing balance method. The operator should also give detail about the cost price of the asset and the rate of depreciation and number of years indicating the life of the asset. The output must show year number (real), value of the asset of that year, depreciation for the year and at end it should indicate the scrap value of the asset.


#include<stdio.h>
#include<conio.h>
void main( )
{
char asset_name[25];
float cost, rate, year, dep, cnt;
clrscr( );
printf("Enter Name of asset, cost, Dep, Rate, Life of asset");
scanf("%s %f %f %f", asset_name, &cost, &rate, &year);
for (cnt=1; cnt < = year; cnt++)
{
dep = cost*rate/100;
printf("\n Year %.0f, Cost this year %.2f, Depreciation %.2f\n", cnt, cost, dep);
cost = cost - dep;
}
printf("Scrap value %.2f\n", cost);
getch( );
}

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP