Question: Lab 2 0 - Over Engineering w / StacksObjectives 1 . More practice with Classes and Object Oriented Programming 2 . Improve your understanding of
Lab Over Engineering wStacksObjectives More practice with Classes and Object Oriented Programming Improve your understanding of Stacks by using and implementing one. More practice with pointers and dynamic memory allocation, still using Linked Lists asour stack implementation.BackgroundRecall that a Linked List is a data structure that relies on the idea of having a collection ofNode's that are linked together. This link comes from the Node having not only data but also apointer to the next node in the list. Before beginning the assignment, you may wish to reviewany notes on Linked Lists and Stacks.A Stack is another data structure that could be implemented either static fixed sized arraysor dynamically using a linked list or vector. The key thing about the stack is that it is a Last InFirst Out LIFO data structure meaning that you only ever interact with the top of the stack atany given time.The AssignmentFor this assignment, you should use stack to reverse the contents of a file. You must implementa dynamic stack using a Linked List in order to solve this. I would encourage you to attempt toimplement the Stack from scratch first, but if you get stuck, remember that we did this in classso you can always go back and review how we implemented it in class.Sample RunEnter file to reverse: reversedfile.dat"Space Frontier"In the year a daring explorer named Freon the Explorer embarked on a crucial mission. Armed with a mysterious family heirloom passed down for generations, Freon the Explorer journeyed through space.An urgent plea for help arrived from the Xyzederons, whose homeworld faced destruction in just days.In fact, it would be destroyed by Friday at :pm which is coincidentally when Labs are dueWith unyielding resolve, Freon the Explorer encountered a strange potato and unexpected cats, inching closer to the Xyzederons's planet. As Freon the Explorer neared their destination, the fate of the galaxy rested on their shoulders, with just a few hours to save the Xyzederons's world from annihilation.Requirements Use as your filenames: stackmain.cpp MyStack.cpp MyStack.h Spelling and Spacing for the output should match Implement your own dynamic stack based on a Linked List Create a few of your own simple data files to test with cat your custom data files for testing in your submission script.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
