Please help me to make a sequencing program for my Operations Research subject.

By this program, i basically need to sequence n jobs in an order.

There are three column: jobs, A, B as shown below:

Job A B

1 4 5

2 3 6

3 5 2

4 1 8

Here A and B are machines and below are the time taken by each machine to complete the particular job. Now the solution i.e. the sequence to this problem is as follows:

The minimum in A will come first, i.e the job corresponding to 1 will come first. Similarly the minimum in B will come last, i.e the job corresponding to 2 will come last. Thus the sequence becomes:

Sequence : 1 2 3 4

Job No. : 4 2 1 3

So I tried to make the program in c++ as given below, by entering the values in A and B, but now i am stuck as of how to make this sequence

```
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int a[10], b[10], i, j, k, n;
cout<<"\n Enter the no of jobs you want to enter: ";
cin>>n;
cout<<"\n";
cout<<"\n Enter the values in coloumn A: ";
for(i=0; i<n; i++)
cin>>a[i];
cout<<"\n Enter the values in coloumn B: ";
for(i=0; i<n; i++)
cin>>b[i];
getch();
}
```

Please I request you professionals to solve my this problem.