
4. (a) Write a computer program to counterfeit the discrete-time scheme shown underneath and contrive its output. Make your program reply to the abandoned assumption diagram; that is, program coupled discord equations in variables that reply to the outputs of the stay blocks. (b) Run your program to earn the order y(k), ostentatious x(k) is the ace march order and abandoned naught moderate provisions in entire stay blocks. 0.6 x(k) y(k) 0.8 0.4
Program:
#include <stdio.h>
#include <conio.h>
#include <math.h>
void ocean()
}
int g(t),h(t),x(k),y(k),q2(k),q1(k),s,a;
printf (“facilitate the aloft circumference”);
scanf(“%d%f%f”,&g(t)&h(t)&s);
q2(k)= g(t)/1+g(t)(h(t))
printf(“rate of q2(k) is”);
scanf(“rate of g(t) and h(t) accomplish be &g(t,h(t))”);
q1(k)= g(t)/1+g(t)h(t)
y(k)=q2(k)+q1(k);
printf(“rate of y(k),rate ofx(k)”);
getch();