All the instructions related to working in Teams as explained in Lab 2 apply here.For this assignment, you need to implement a link-based Queue ADT. If you finished Lab 2 with proper abstraction, you should be able to reuse most of your code in this lab. To complete this, you will need the following:A Node ADT which will have two attributes – a data attribute and a pointer attribute. Remember the Node has to be an ADT, so that it can hold any kind of data.You can choose to use this node as both a data and a head-pointing node or as a simple data node in which case you will need a new head pointing node. In the head-pointing node, you will need to implement both front and rear pointers.A Singly Linked List ADT which will be composed of one or more of your nodes. Implement the most common linked-list behaviors as explained in class – new list, add anywhere, delete anywhere, find anywhere, count of items in the list, empty the list, etc.Finally, implement a Queue ADT based on your singly linked list which will implement the most common Queue operations like enqueue, dequeue, front, rear, empty etc.Ensure that your Node, List and Queue ADTs are mimimal and cohesive with adequate walls around them. Define interfaces as needed, so you can reuse them in all your subsequent assignments.Then write a main that will demonstrate the capabilities of you Queue ADT with different types of data – numbers, strings and your currency objects.Grading:3 points – EXE works without a hitch2 points – MSVC project structure, code styling, commenting3 points – Queue template which only exposes Queue related behaviors.2 points – Demonstration of Queue ADT in main.As already explained, this assignment should be done in Visual Studio or properly changed into a Visual Studio format before submitting. Include your entire VS folder structure zipped as attachment to this question. The exe should work on its own before the coding will be graded. Also, include screenshots of the output. Remember to name your project and zip file name as QueueADT_initial_1_initial2. Add the team member names in the response box of the question for the answer to be accepted.
stackadt_qipeng_xiaohang_.zip

Unformatted Attachment Preview


Purchase answer to see full
attachment