ANNEXURE-II " C ” Program for Economic Analysis of Reclamation

ANNEXURE-II
" C ” Program for Economic Analysis of Reclamation
#include <stdio.h>
int resp,respint,ij;
float totcost,totothercost=205000;
char *name;
float totton=l 2480,totreccost,newsandcost;
int year,eflf,respnu,respnu 1 ,respl ,resp2;
float growrate;
float opcost[7]={200,160,160,190,220,225,210};
float elec[7]={60,60,60,90,90,90,100};
float labo[7]={90,100,100,100,110,110,110};
float comm[7]={50,0,0,0,20,25,0};
int sandval[]={517,567,616,666,716,766,815,865,915,964,1014};
float
mullerval=70000,dryerval=45000,wetdryerval=130000,pneureclval=l 25000,aircompval=l
5000;
float horicentval=45000,dryercost;
float jawcrusval=80000,rollcrusval=40000,magnsepaval=60000,clasequival:=25000;
main()
{
clrscr();
{
printf("\n\n\t\t\tSAND RECLAMATION PROCESSES");
printf("\n\n\tThe various methods are\n");
printf("\n\tl .Chemical method");
printf("\n\t2.Pneumatic method");
printf("\n\t3.Horizontal scrubber method");
printf("\n\t4.Wet method");
printf("\n\t5.Chemcial +Wet method");
printf("\n\t6.HCS+Chemical method");
printf("\n\t7.HCS+Wet method”);
printf("\n\tEnter the appropriate number:\t");
scanf("%d",&resp);
fflush(stdin);
}
func();
}
RECLAMATION AND REUSABILITY STUDIES ON CO,-SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.2
func()
{
clrscr();
printf("\n\n\tThe costs involved are");
printf("\n\n\tl .Machinery costs");
printf("\n\n\t2.Operational costs");
printf("\n\n\t\tEnter the appropriate number to change costs(Enter l/2):\t");
scanf("%d",&respl);
fflush(stdin);
if(respl==2)
{
clrscrQ;
printf("\n\n\tThe costs involved are:");
printf("\n\tl .Cost of electricity per ton
- %4.0f',elec[resp-1 ]);
printf("\n\t2.Cost of labour and maintenance - %4.0f',labo[resp-1 ]);
printf("\n\t3.Cost of commercial acid additions - %4.0f',comm[resp-l]);
printf("\n\n\tEnter the appropriate number to change costs(l/2/3):\t");
scanf("%d" ,&resp2);
fflush(stdin);
if(resp2==l)
{
printf("\n\n\tEnter cost of electricity per ton:\t");
scanf("%d",&elec[resp-l]);
fflush(stdin);
opcost[resp-1 ]=labo[resp-1 ]+elec[resp-1 ]+comm[resp-1 ];
}
if(resp2==2)
{
printf("\n\n\tEnter cost of labour and maintenance per ton:\t");
scanf("%d",&labo[resp-l]);
fflush(stdin);
opcostfresp-1 ]=labo[resp-1 ]+elec[resp-1 ]+comm[resp-1 ];
}
if(resp2==3)
{
printf("\n\n\tEnter cost of commercial additions per ton:\t");
scanf("%d",&comm[resp-l]);
fflush(stdin);
opcostfresp-1 ]=labo[resp-1 ]+elec[resp-1 ]+comm[resp-1 ];
}
}
iffrespl==l)
RECLAMATION AND REUSABILITY STUDIES ON CO, • SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.3
{
printf("\n\n\tDo you want to change common(l) or specific machinery costs(2)");
printf("\n\tEnter(l/2):\t");
scanf("%d" ,&respnu);
fflush(stdin);
if(respnu==2)
{
if(resp==l)
funcchem();
if(resp==2)
funcpneu();
if(resp==3)
funchori();
if(resp==4)
funcchem();
if(resp==5)
funcchem();
if(resp=6)
funchori();
if(resp==7)
funchori();
}
if(respnu=l)
{
clrscr();
printf("\n\n\tl .Jaw crusher
- 80000");
printf("\n\n\t2.Roll crusher
- 40000");
printf("\n\n\t3.Magnetic seperator - 60000");
printf("\n\n\t4.Clasification eqpmt- 25000");
printf("\n\n\tEnter appropriate number to change the values:\t");
scanf("%d",&respnul);
fflush(stdin);
if(respnul==l)
{
printf("Enter the value of jaw crusher:\t");
scanf("%f *,&j awcrusval);
fflush(stdin);
}
if(respnul==2)
{
printf("Enter the value of roll crusherAf');
scanf("%f',&roIlcrusval);
fflush(stdin);
}
if(respnul ==3)
{
printf("Enter the value of magnetic separatorAt");
scanf("%f' ,&magnsepaval);
RECLAMATION AND REUSABILITY STUDIES ON CO,-SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.4
fflush(stdin);
}
if(respnul==4)
{
printf("Enter the value of classification equipment:^');
scanf("%f',&clasequival);
fflush(stdin);
}
}
clrscr();
printf("\n\n\tEnter the efficiency of operation:\t");
scanf("%d",&eff);
fflush(stdin); .
printf("\n\n\tEnter the year(in four digits(Ex:1999)(1998-2008):\t");
scanf("%d" ,&year);
fflush(stdin);
printf("\n\n\tEnter the growth rate of operational costs:\t");
scanf("%f',&growrate);
fflush(stdin);
newsandcost=sandval [year-1998];
totothercost=jawcrusval+rollcrusval+magnsepaval+clasequival;
if(resp==l)
{
totcost=totothercost+mullerval+dryerval;
name="Chemical method";
}
if(resp=2)
{
totcost=totothercost+pneureclval+aircompval;
name="Pneumatic method";
}
if(resp==3)
{
totcost=totothercost+horicentval;
name="Horizontal Scrubber method";
}
if(resp==4)
{
totcost=totothercost+mullerval+wetdryerval;
name="Wet method";
}
if(resp=5)
{
toteost=totothercost+mullerval+wetdryerval;
name="Chemical + wet method";
RECLAMATION AND REUSABILITY STUDIES ON CO, - SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.5
}
if(resp==6)
{
totcost=totothercost+mullerval+dryerval+horicentval;
name="HCS+Chemical method";
}
if(resp==7)
{
totcost=totothercost+horicentval+mullerval+wetdryerval;
name="HCS+wet method";
}
clrscr();
printf("\n\n\t\t\t%s",name);
printf("\n\n\t\tValues predicted for %d",year);
if(year<=2004)
{
printf("\n\n\tCapital investment
=%10.2f',totcost);
printf("\n\tlnterest on capital investment =%10.2f’,totcost*0.9);
printf("\n\n\tTotal fixed cost
=%10.2f',totcost* 1.9);
}
else
{
printf("\n\n\tCapital investment
=%\0.2f',totcost* 1.5);
printf("\n\tlnterest on capital investment =%10.2f',totcost*0.9* 1.5);
printf("\n\n\tTotal fixed cost
=%10.2f',totcost*1.9*1.5);
totcost=totcost* 1.5;
}
printf("\n\n\tCost/ton of sand processed
i=year-1998;
while(i>0)
=%10.2f',totcost/totton);
{
opcost[resp-1 ]=(opcost [resp-1 ] *( 100+growrate))/100;
i-S
}
printf("\n\n\toperational cost per ton
=%10.2f',opcost[resp-l]);
printf("\n\n\t(Operational cost predicted to grow at %2.0f percent)",growrate);
totreccost=totcost/totton+opcost [resp-1 ];
printf("\n\n\tcost per ton of sand(%d eff) =%10.2f',eff,totreccost* 100/eff);
printf("\n\tTotal cost per ton of new sand =% 10.2f \newsandcost* 1.1);
printf("\n\t (including 10 percent cost for drying)");
printf("\n\n\tTotal saving per ton of sand
=%10.2f',newsandcost* 1.1 -(totreccost* 100/eff));
}
funcchem()
{
clrscrQ;
RECLAMATION AND REUSABILITY STUDIES ON CO, - SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.6
printf("\n\n\tThe costs involved are");
printf("\n\n\tl.Muller - 70000");
if(resp==l)
dryercost=45000;
if(resp=4||5)
dryercost=l 30000;
printf("\n\n\t2.Dryer - %7.0f',dryercost);
printf("\n\n\t\tEnter appropriate numberto change machinery cost(Enter l/2):\t");
scanf(" %d" ,&respint);
fflush(stdin);
if(respint==l)
{
printf("\n\n\tEnter the new cost of Muller:\t");
scanf("%f',&mullerval);
fflush(stdin);
}
if(respint=2)
{
printf("\n\n\tEnter the new cost of Dryer:\t");
if(resp=l)
scanf("%f',&dryerval);
if(resp=4||5)
scanf("%f',&wetdryerval);
fflush(stdin);
}
}
funcpneu()
{
clrscrQ;
printf("\n\n\tThe costs involved are");
printf("\n\n\tl.Pneumatic Reclamation system - 125000");
printf("\n\n\t2.Air compressor unit - 15000");
printf("\n\n\t\tEnter appropriate numberto change machinery cost(Enter l/2):\t");
scanf("%d",&respint);
fflush(stdin);
if(respint==l)
{
printf("\n\n\tEnter the new cost of Pneumatic reclamation system :\t");
scanf("%f',&pneureclval);
fflush(stdin);
}
if(respint=2)
{
printf("\n\n\tEnter the new cost of Air compressor unit:\t");
RECLAMATION AND REUSABILITY STUDIES ON CO, - SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.7
scanf("%f',&aireompval);
fflush(stdin);
}
funchori()
{
clrscr();
printf("\n\n\tThe costs involved are");
printf("\n\n\tl .Horizontal centrifugal scrubber - 45000");
if(resp==6||7)
{
printf("\n\n\t2.Muller - 70000");
if(resp=6)
dryercost=45000;
if(resp==4||5||7)
dryercost=130000;
printf("\n\n\t3.Dryer - %7.0f',dryercost);
}
printf("\n\n\t\tEnter appropriate numberto change machinery cost(Enter l,2,3):\t");
scanf("%d",&respint);
fflush(stdin);
if(respint==l)
{
printf("\n\n\tEnter the new cost of horizontal centrifugal scrubber:\t");
scanf("%f' ,&horicentval);
fflush(stdin);
}
if(respint==2)
;~~
-■
printf("\n\n\tEnter the new cost of DryerAt");
if(resp==6)
scanf("%f',&dryerval);
if(resp==7)
scanf("%f',&wetdryerval);
fflush(stdin);
}
r
' 7104 ®-
{
printf("\n\n\tEnter the new cost of Muller:\t");
scanf("%f' ,&mullerval);
fflush(stdin);
}
if(respint==3)
Bharathlar Unlvaralty
Library
Miiiniii
ENQG
83807
RECLAMATION AND REUSABILITY STUDIES ON CO, - SODIUM SILICATE BONDED SANDS FOR FERROUS FOUNDRIES.
A.8