-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheva.c
executable file
·30 lines (30 loc) · 890 Bytes
/
eva.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include<stdio.h>
int main()
{
float ac,ev,pv,spi,bac,etc,vac,per,cv,sv,cpi,eac;
printf("Enter Budget at Completion-->");
scanf("%f",&bac);
printf("Enter Percentage completed after 3 days-->");
scanf("%f",&per);
printf("Enter Actual Cost-->");
scanf("%f",&ac);
pv=bac*(.75);
ev=bac*(per);
spi=ev/pv;
printf("Planned Value-->%f\n",pv);
printf("Earned Value-->%f\n",ev);
printf("Scheduled Performance Index-->%f\n",spi);
cv=ev-ac;
printf("Cost Variance-->%f\n",cv);
sv=ev-pv;
printf("Schedule Variance-->%f\n",sv);
cpi=ev/ac;
printf("Cost Performance Index-->%f\n",cpi);
eac=ac+(bac-ev)/cpi;
printf("Estimate at Completion-->%f\n",eac);
etc=eac-ac;
printf("Estimate to complete-->%f\n",etc);
vac=bac-eac;
printf("Variance at Completion-->%f\n",vac);
return 0;
}