(Solved) : Write Thefollowing Program Using Class C Program Implement Fifo Fcfs Queue Data 1 Define Q42738077 . . .

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…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?