Work Software Engineer Large Retail Company Evaluating Various Data Structures Store Retai Q43867942
You work as a software engineer for a large retail company andare evaluating various data structures to store retail products.You are asked to implement an array-based stack that can store thefollowing products: Laptop, Keyboard, Mouse, Speaker, Charger,Mobile, LED, LCD. The laptops should be stored at the top of thestack data structure. You must perform the following steps inorder: Create an array-based data structure for the stack. Displaythe size of the stack. Display all of the elements that are storedon the stack Store all of the elements on the stack using the pushmethod. Extract the top three elements (laptops, keyboards, andcomputer mice) using the pop method. Display the size of the stack.Note that you can create a stack data structure in any programminglanguage. The program should compile, and a stack should becreated. The stack should have all of the retail products. YourWord document should contain screenshots of the program and itsoutput. Your answer should contain the following: The push methodto insert the element The size method to determine the size of thestack The pop method to remove the element Remember to display allof the elements that are stored on the stack.
Expert Answer
Answer to You work as a software engineer for a large retail company and are evaluating various data structures to store retail pr…
OR