FEL is Future event list. A list of event notices for future events. The event notice must contain all the information necessary to execute the event (in particular the time it is scheduled to occur). The event list is the main data structure in a discrete-event simulator so its important to code for FEL. #include<stdio.h> #include<conio.h> /*****************************FEL for a grocery shop!!**********************************/ //Defining structure for customer!! typedef struct { int cno,inter_arr,arr_time,ser_time,beg_time,wait_time,end_time,sys_time,idle_time; }cust; //Defining structure for FEL because we have entries for arrival,departure,end & their respective time!! typedef struct { char ename; int time; }event; //For lookup function for inter-arrival time!! int lookup_interarr(int i) { if(i>=0 && i<13) return 1; else if(i>=13 && i<25) return 2; else if(i>=25 &&
Data and Tech notes for students and professionals