FEL by Saurabh Piyush
MCA/4509/10
*/ FEL GENERATED FOR 500 CUSTOMERS------TIME =1000 mins */
#include
#include
#include
typedef struct
{
int cust_no,int_arrival,arrival,service,tsb,tse,wait,tsis,idle;
}customer;
int lookup2(int c)
{
if(c>=0 && c<11)
{
return 1;
}
else if(c>=11 && c<31)
{
return 2;
}
else if(c>=31 && c<61)
{
return 3;
}
else if(c>=61 && c<86)
{
return 4;
}
else if(c>=86 && c<96)
{
return 5;
}
return 6;
}
int lookup1(int c)
{
if(c>=0 && c<13)
{
return 1;
}
else if(c>=13 && c<25)
{
return 2;
}
else if(c>=25 && c<38)
{
return 3;
}
else if(c>=38 && c<50)
{
return 4;
}
else if(c>=50 && c<63)
{
return 5;
}
else if(c>=63 && c<75)
{
return 6;
}
else if(c>=75 && c<87)
{
return 7;
}
return 8;
}
void printlist(customer c)
{
printf("\n");
printf("%d\t",c.cust_no);
printf("%d\t",c.int_arrival);
printf("%d\t",c.arrival);
printf("%d\t",c.service);
printf("%d\t",c.tsb);
printf("%d\t",c.tse);
printf("%d\t",c.tsis);
printf("%d\t",c.wait);
printf("%d\t",c.idle);
}
customer initialize(customer c)
{
c.cust_no=1;
c.int_arrival=0;
c.arrival=0;
c.service=lookup2(rand()%100);
c.tsb=0;
c.tse=c.service;
c.wait=0;
c.idle=0;
c.tsis=c.service;
printlist(c);
return c;
}
typedef struct
{
char ename;
int time;
}event;
int max(int a,int b)
{
return a>=b?a:b;
}
void sort_fel(event fel[],int t,int in,int dp)
{
event temp[3],temp2;
int i,j;
for(i=0;i<3;i++)
{
temp[i]=fel[i];
}
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
if(temp[i].time
Advantages and Disadvantages of EIS Advantages of EIS Easy for upper-level executives to use, extensive computer experience is not required in operations Provides timely delivery of company summary information Information that is provided is better understood Filters data for management Improves to tracking information Offers efficiency to decision makers Disadvantages of EIS System dependent Limited functionality, by design Information overload for some managers Benefits hard to quantify High implementation costs System may become slow, large, and hard to manage Need good internal processes for data management May lead to less reliable and less secure data
Comments