DD

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

//TO CALCULATE THE FUNCTION POINT//

//SHRUTI//
//ST_IT 45//
#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
int UFP;
float CAF,FP;
int f[5][3]={{3,4,6},{4,5,7},{3,4,6},{7,10,15},{5,7,10}};
int EI,EO,EQ,ILF,EIF;
clrscr();
cout<<"\n\t\t ***function units***";
for(i=0;i<=4;i++)
{
cout<<"\n\t\t\t";
for(j=0;j<=2;j++)
{
cot<<f[i][j];
cout<<" ";
}
cout<<"\n";
}
cout<<"\n\t enter no of EI";
cin>>EI;
cout<<"\n\t enter no of EO";
cin>>EO;
cout<<\n\t enter no of EQ";
cin>>EQ;
cout<<"\n\t enter no of ILF";
cin>>ILF;
cout<<"\n\t enter no of EIF";
cin>>EIF;
UFP=EI*f[0][1]+EO*f[1][1]+EQ*f[2][1]+ILF*f[3][1]+EIF*f[4][1];
cout<<"the unadjusted function point is"<<UFP;
cout<<"\n\t computation of various rating factor";
cout<<"\n\t no influence=0";
cout<<"\n\t incidental=1";
cout<<"\n\t moderate=2";
cout<<"\n\t average=3";
cout<<"\n\t significant=4";
cout<<"\n\t essential=5";
cout<<"\n assuming all CAF to be average"";
CAF=0.65+0.01*(14*3);
cout<<"\n\t complexity adjustment factor"<<CAF;
FP=UFP*CAF;
cout<<"\n\t function point"<<FP;
getch();
}

You might also like