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; }
Data and Tech notes for students and professionals