Define a class named FCFSQueue with two private attributes: CustomerList: an array of 100 elements of type Customer; length: integer, which is the number of customers in the queue. And four public methods: 1. method IsEmpty checks whether the queue is empty or not. Return true if empty, otherwise, return false; 2. method GetLength will return the number of customers in the queue; 3. method Enqueue will insert a new customer to the tail of the queue; 4. method Dequeue will remove a customer from the head of the queue. And 1 constructor: 1. Default: where you will initialize length Problem 2 Implement all methods for Problem 1and test them in your main function by creating an FCFSQueue object calling methods on it.
Define a class named FCFSQueue with two private attributes: CustomerList: an array of 100 elements of type Customer; length: integer, which is the number of customers in the queue. And four public methods: 1. method IsEmpty checks whether the queue is empty or not. Return true if empty, otherwise, return false; 2. method GetLength will return the number of customers in the queue; 3. method Enqueue will insert a new customer to the tail of the queue; 4. method Dequeue will remove a customer from the head of the queue. And 1 constructor: 1. Default: where you will initialize length Problem 2 Implement all methods for Problem 1and test them in your main function by creating an FCFSQueue object calling methods on it.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Plz do it in c++ language

Transcribed Image Text:Define a class named FCFSQueue with two private attributes:
CustomerList: an array of 100 elements of type Customer;
length: integer, which is the number of customers in the queue.
And four public methods:
1. method IsEmpty checks whether the queue is empty or not. Return true if empty, otherwise, return false;
2. method GetLength will return the number of customers in the queue;
3. method Enqueue will insert a new customer to the tail of the queue;
4. method Dequeue will remove a customer from the head of the queue.
And 1 constructor:
1. Default: where you will initialize length
Problem 2
Implement all methods for Problem 1and test them in your main function by creating an FCFSQueue object calling methods on it.

Transcribed Image Text:In this program, you will implement a FIFO or FCFS Queue.
The data:
Define a class named Customer with four private attributes:
CustomerName: 15-character c-string which is the name of the customer or regular string
ArrivalTime: integer, which is the arrival time of the customer
ServiceTime: integer, which is the time point that the customer starts to be serviced
FinishTime: integer, which is the leaving time of the customer
And two public methods:
1. method setCustomer that takes 3 parameters: customer name as a character array or a string, arrival time as an integer, and service time
as an integer
2. method displayCustomer will display a customer name, arrival time, service time, and finish time.
3. and 2 constructors:
1. Default Constructor
2. Parameterized with 3 parameters: customer name as a character array or a string, arrival time as an integer, and service time as
an integer
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education