Question: Need help with a project for c++ in visual studion rubric: Queue Class: Write a Queue class using doubly-linked structure and implement the following functionalities.
Need help with a project for c++ in visual studion
rubric:




Queue Class: Write a Queue class using doubly-linked structure and implement the following functionalities. 1. enqueue {inserts element to the end} 2. degueue {removes the front element and provides content) 3. isEmpty {checks whether the Queue is empty or not]| 1,. ma IteErnpty [J 5. peek {provides the element sitting at the topi'front, but does not remove] .print [prints all the elements from front to the end) 1. reversePrint{prints all the elements from end to the front with the help of back pointers inside your nodesi Faceboolc Class: You're going to #include the Queue class in your Facehook class that will have the following functions and data members: Functions: 1. addFriend: a given Friend should he added to the Friend list which is a Queue object. That means when you call this function engueue function from Queue should be triggered and the new Friend should he added to the end of your Queue. 2. removeFriend: you don't have to pass a user nameJr but wheneverthis function is called the degueue function from Queue should be triggered. That means the Friend at the front should he removed from the list and hislher name should he provided. 3. printFriendsF{}: this should trigger the print{} function of Queue so that you can print all the Friends from front to the end. 1,. printFriendsRIIi: this should trigger the reversePrint{J function of Queue so that you can print all the Friends from end to the front. 5. firstFriend{1I: this should trigger the peek function of Queue so that you can print the Friend who was added first. 45. resetFriendsIE}: this should triggerthe malteEn'I pty function of Queue so that your list can be emptied. :r. checklistl}: this should trigger the isEn'Iotyt} function of Queue to verify that your list is empty. Data members: 8. "int numofFriends" to keep track of the total number of Friends 9. "DataType user" who's going to be followed. 10. "Queue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
