Assignment : 3 Set A: i) Write the program to simulate FCFS CPU-scheduling. The arrival time and first CPU- Burst for different n number of processes should be input to the algorithm. Assume that the fixed IO waiting time (2 units). The next CPU-burst should be generated randomly. The output should give Gantt chart, turnaround time and waiting time for each process. Also find the average waiting time and turnaround time. CODE: 👇 #include<stdio.h> #include<stdlib.h> struct proc_info { int atime; int cpub; int pid; } proc[20], temp; struct ganttchart { int stime; int pid; int etime; } gchart[20]; int i,j,ctime,n,gi=0,wtime[20],ttime[20]; void getprocs(); void start(); void dispgchart(); void addgchart(int); void disptimes(); int main() { getprocs(); ctime=0; start(); dispgchart(); disptimes(); } void getprocs() { printf("\nHow many processes:"); scanf("%d",&n); printf("\nPID\tATIME\tCPUB\n"); for(i=1; i<=n...