Question: BCS 370 Assignment - Stack You will be creating a stroke-based sketch book app, using stack data structure. The app menu items include the following

BCS 370 Assignment - Stack You will be creating a stroke-based sketch book app, using stack data structure. The app menu items include the following actions (methods): draw(); erase(); undo(); redo(); A drawing is made of strokes. When draw() is called, a new stroke is made; when erase() gets called, the latest stroke is deleted from the screen; when undo() is called, the latest stroke is removed, but the record is saved; when redo() is called, the last undo() action (stroke) is recalled back. Can you design and implement the program, including the above methods, using stack data structure? You may use any stack program as your base. For example, the sample program from the textbook, or something like this (https://www.programiz.com/dsa/stack, though it is written in C, but very easy to convert to C++). Or you can directly use C++ library
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
