Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Showing posts with label Depreciation Porgram. Show all posts
Showing posts with label Depreciation Porgram. Show all posts

Wednesday, March 10, 2010

Calculation of depreciation , by using Written Down Value ( WDV ) as well as Straight Line Method ( SLM ).

Enter cost, rate of depreciation and number of years. Display depreciation for each year by WDV method as well as by Straight Line Method.


#include<stdio.h>
#include<conio.h>
void main( )
{
float cost, rate, year, slmdep, wdvdep, cnt;
clrscr( );
printf("Enter Cost, Dep.Rate, Years");
scanf("%f %f %f", &cost, &rate, &year);
slmdep = cost*rate/100;
for (cnt=1; cnt < = year; cnt++)
{
wdvdep = cost*rate/100;
cost = cost - wdvdep;
printf("\n Year %f, WDV Dep %.2f, SLM Dep %.2f\n", cnt, wdvdep,slmdep);
}
getch( );
}


read more "Calculation of depreciation , by using Written Down Value ( WDV ) as well as Straight Line Method ( SLM )."

Calculation of depreciation by using straight Line method ( SLM )

Enter cost, rate of depreciation and number of years. Display depreciation for each year by straight line method.


#include<stdio.h>
#include<conio.h>
void main( )
{
float cost, rate, year, dep, cnt;
clrscr( );
printf("Enter Cost, Dep.Rate, Years");
scanf("%f %f %f ", &cost, &rate, &year);
dep = cost*rate/100;
for(cnt=1; cnt < = year; cnt++)
{
printf("\n Year %f, Depreciation %.2f\n", cnt, dep);
}
getch( );
}
read more "Calculation of depreciation by using straight Line method ( SLM )"

Calculation of depreciation by using WDV method

Enter cost, rate of depreciation and number of years. Display depreciation for each year by WDV method.


#include<stdio.h>
#include<conio.h>
void main( )
{
float cost, rate, year, dep, cnt;
clrscr( );
printf("Enter Cost, Dep.Rate, Years");
scanf("%f %f %f", &cost, &rate, &year);
for (cnt=1; cnt < = year; cnt++)
{
dep = cost*rate/100;
cost = cost - dep;
printf("\n Year %f, Depreciation %.2f\n", cnt, dep);
}
getch( );
}
read more "Calculation of depreciation by using WDV method"

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( );
}
read more "Calculation of depreciation , by using WDV method & scrap value at the end"

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP