Question: Write a C/C++ application that creates a Stack data structure. The Stack must be built using a Linked List (i.e., refer to Linked List Implementation,
Write a C/C++ application that creates a Stack data structure. The Stack must be built using a Linked List (i.e., refer to Linked List Implementation, Figure 4.5 pp. 137 - 138 ). The application also creates a "DisplayStackElement" routine. The application must be menu driven (with an option to terminate the application) and provide the following features.
Allow insertion of a "Circle" object/structure in the Stack data structures. The Circle contains a "radius" data member. The Circle also uses functions/methods "setRadius", "getRadius" and calculateArea (returns a double data type).
Allow display of an element from Stack data structure by Invoking a method/function "DisplayStackElement" (uses the "Pop" method)
Allow for deletion of the Stack
*****Need only a C++ program of Stack data structure. Must have menu. Must use Pop method to display elements. Must have method to delete Stack.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
