// Round Robin #include #include struct { int p,bt,at,st,ft,tat,wt; }pro[20],temp[20],tmp; int n,ts,order[20],k=0; void rndrbn(); void sortat(); void main() { clrscr(); cout<<"\t\t\tRound Robin Scheduling\n"; cout<<"-------------------------------------------------------\n"; cout<<"\nEnter the no. of Process:"; cin>>n; cout<<"\nEnter the Time Slice:\n"; cin>>ts; for(int i=0;i>pro[i].bt; pro[i].p=i+1; cout<<"Enter the Arrival Time of Process "<>pro[i].at; temp[i]=pro[i]; } rndrbn(); cout<<"\nTheSequence of Process Execution is \n"; for(i=0;itemp[j].at) { tmp=temp[i]; temp[i]=temp[j]; temp[j]=tmp; } }