#include using namespace std; struct sjf{ int id, arr, bur, comp, turn, wait, orgBur; }; sjf meh[30]; class SJF{ public: int n; void getIn() { cout<<"Enter number of processes: "; cin>>n; for(int i = 0; i < n; i++){ cout<<"\nEnter arrival time for process "<>meh[i].arr; cout<<"Enter burst time for process "<>meh[i].bur; meh[i].orgBur = meh[i].bur; meh[i].id = i; } } void process() { int k = 0; int completed = 0; cout<<"\nSequence of processes is: "; while(completed < n){ int burst = 999; int idd = -1; for(int i = 0; i < n; i++){ if(meh[i].arr <= k && meh[i].bur > 0){ if(meh[i].bur < burst){ burst = meh[i].bur; idd = i; } } } if(idd != -1){ cout<<"P"<