Question: Question: you are expected to develop a simple version of the web browsers Go back one page, and Go forward one page functionality utilizing two
Question: you are expected to develop a simple version of the web browsers Go back one page, and Go forward one page functionality utilizing two stacks. These two stacks will be called as backward_stack and forward_stack. They will keep the web addresses that you visited previously.
In the application you will generate a menu as displayed in the sample run and allow user to select following functionalities; visit new webpage, go back one page, go forward one page. Do not forget that the webpage you currently are in may not have a previous page or a forward page. If that is the case, you must give appropriate error messages. Check the sample output thoroughly to understand the application functionality.
Important Note: Use LStack.h header file on the moodle web page, which is also attached to this homework notification. Do not change any functionality within the header file or upload your own header file. Your home-works will be graded only with the given header file.
Sample run:

The header file:
/* * LStack.h * * Created on: Nov 17, 2020 * Author: Ziya Karakaya * Desciption: * Stack class implemented using linked list notation * * Last update : Nov 25, 2020 * Version: v0.2 * Update Notes: * We changed the name Node to SNode in order to prevent redefinition error when used with other ADTs. * */
#ifndef STACK_H_ #define STACK_H_
#include
template
template
//resets the stack to its initial state template
//insert a new item to the top of stack template
//retrieve (remove and return) the top value template
template
#endif /* STACK_H_ */
Sample Run: (Bold strings below are user inputs) Choose (N) ew page, go (B)ack one page, go (F) orward one page (0) uit: N Enter new page address: www.google.com You are currently visiting google. Choose (N) ew page, go (B)ack one page, go (F) orward one page (Q) uit: F Error! There is no Forward page. You are currently visiting google. Choose (N) ew page, go (B)ack one page, go (F) orward one page (Q) uit: N Enter new page address: www.instagram.com You are currently visiting instagram
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
