Write thefollowing program using class in c++. In this program,you will implement a FIFO or FCFS Queue. The data: 1) Define aclass named Customer with four members: CustomerName: 15-characterstring, which is the name of the customer ArrivalTime: integer,which is the arrival time of the customer ServiceTime: integer,which is the time point that the customer starts to be servicedFinishTime: integer, which is the leaving time of the customer 2)Define a class named FCFSQueue with two members: CustomerList: anarray of 100 elements of type Customer; length: integer, which isthe number of the customers in the queue. This program has fourfunctions: 1. function IsEmpty check whether the queue is empty ornot. Return true if empty, otherwise return false; 2. functionGetLength will returns the number of customers in the queue; 3.function Enqueue will insert a new customer to the tail of thequeue; 4. function Dequeue will remove a customer from the head ofthe queue. Your main program will test these functions.
Expert Answer
Answer to Write thefollowing program using class in c++. In this program, you will implement a FIFO or FCFS Queue. The data: 1) De…