Using C++ to Creates a class called Member with two integer x and y. a. Add a constructor able to create a Member object with tow integers and the default values 0,0; b. Add the methods setX and setY to modify the attributes x and y; c. Add the method display able to display the attributes,

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
icon
Related questions
Question
Using C++ to Creates a class called Member with two integer x and y. a. Add a constructor able to create a Member object with tow integers and the default values 0,0; b. Add the methods setX and setY to modify the attributes x and y; c. Add the method display able to display the attributes, - A Queue is a special array where the insertion and deletion will be via a specific index called "head". A Queue is characterized by 3 attributes: a. capacity (int): the maximum number element Member that can be contained into the Queue; b. head: presents the index where we can add/remove element to the Queue. The head value presents also the current number of elements into the Queue. When a Queue is created the initial value of head is 0; c. Member content[]: an array of elements of type Member; Creates the class Queue with the following methods: a. a Constructor able to create a Queue with maximum 10 Members; b. bool empty (): this method returns true if no element exists in the Queue c. bool full(): this method returns true if there are no place to add a new element to the Queue; d. overload the operator += (Member): able to add an element to the Queue. You need to be sure that there is an available space in the Queue (use the assert function). e. delete(): able to delete an element from the Queue. You need to be sure that there is at least an available space in the Queue (use the assert function). f. display(): a method able to display all the member elements existing in the Queue; - Creates a function main() to test the program: a. Creates a Queue; b. Creates 3 Members and then insert all of them into the Queue; c. Display the Queue; d. Delete an element from the Queue; e. Display the Queue for one more time;
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Class
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education