**The Project**

In this project you will be required to write a program in C/ C++, java or MATLAB thatgenerates a histogram that shows the percentage or relative frequency of packet trains thatare of a certain length.

*Inputs to your program:*

A “packet train” of length i is a sequence of i consecutive packets (with no gaps or idle slots in between).

In a given time slot the probability that a station has a single packet to transmit is *p.**? *The probability of no packet in a slot (idle slot) is *1-p.? *全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写One packet fills one time slot. In your program you will need to use a random number generator function to simulate the probability that a slot has a packet or not.

全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写For each of three values of p you will plot a histogram showing the relative frequency of packet trains of lenth i.? The horizontal axis of the histograms will be the packet train length (i=1,2,3…) and the vertical axis will be the recorded relative frequency.

You will generate histograms for p = 0.2