Name: Mukesh H Mulani
Roll No : MCA/4527/10
#include
#include
#include
typedef struct
{
int cno,in_arr,arr,ser_time,tsb,tse,wait,tsis,idle; }customer;
int lookup1(int c)
{
if(c>=0 && c<13 1="1" c="c" else="else" if="if" return="return">=13 && c<25 2="2" c="c" else="else" if="if" return="return">=25 && c<38 3="3" c="c" else="else" if="if" return="return">=38 && c<50 4="4" c="c" else="else" if="if" return="return">=50 && c<63 5="5" c="c" else="else" if="if" return="return">=63 && c<75 6="6" c="c" else="else" if="if" return="return">=75 && c<87 7="7" 8="8" c="c" if="if" int="int" lookup2="lookup2" return="return">=0 && c<11 1="1" c="c" else="else" if="if" return="return">=11 && c<31 2="2" c="c" else="else" if="if" return="return">=31 && c<61 3="3" c="c" else="else" if="if" return="return">=61 && c<86 4="4" c="c" else="else" if="if" return="return">=86 && c<96 5="5" 6="6" a="a" b="b" c.arr="0;" c.cno="1;" c.idle="0;" c.in_arr="0;" c.ser_time="lookup2(rand()%100);" c.tsb="0;" c.tse="c.ser_time;" c.tsis="c.ser_time;" c.wait="0;" c="c" char="char" customer="customer" d="d" ename="ename" event="event" initialize="initialize" int="int" max="max" n="n" printf="printf" prtcust="prtcust" return="return" struct="struct" t="t" time="time" typedef="typedef" void="void">=b?a:b; } void prtfel(event fel[],int t,int in,int dp) { event temp[3],temp2; int i,j; for(i=0;i96>86>61>31>11>87>75>63>50>38>25>13>
#include
#include
typedef struct
{
int cno,in_arr,arr,ser_time,tsb,tse,wait,tsis,idle; }customer;
int lookup1(int c)
{
if(c>=0 && c<13 1="1" c="c" else="else" if="if" return="return">=13 && c<25 2="2" c="c" else="else" if="if" return="return">=25 && c<38 3="3" c="c" else="else" if="if" return="return">=38 && c<50 4="4" c="c" else="else" if="if" return="return">=50 && c<63 5="5" c="c" else="else" if="if" return="return">=63 && c<75 6="6" c="c" else="else" if="if" return="return">=75 && c<87 7="7" 8="8" c="c" if="if" int="int" lookup2="lookup2" return="return">=0 && c<11 1="1" c="c" else="else" if="if" return="return">=11 && c<31 2="2" c="c" else="else" if="if" return="return">=31 && c<61 3="3" c="c" else="else" if="if" return="return">=61 && c<86 4="4" c="c" else="else" if="if" return="return">=86 && c<96 5="5" 6="6" a="a" b="b" c.arr="0;" c.cno="1;" c.idle="0;" c.in_arr="0;" c.ser_time="lookup2(rand()%100);" c.tsb="0;" c.tse="c.ser_time;" c.tsis="c.ser_time;" c.wait="0;" c="c" char="char" customer="customer" d="d" ename="ename" event="event" initialize="initialize" int="int" max="max" n="n" printf="printf" prtcust="prtcust" return="return" struct="struct" t="t" time="time" typedef="typedef" void="void">=b?a:b; } void prtfel(event fel[],int t,int in,int dp) { event temp[3],temp2; int i,j; for(i=0;i96>86>61>31>11>87>75>63>50>38>25>13>
Comments