Assignment
Run the four programs stored with this assignment:
• Stack1
• Stack2
• Queue1
• Queue2
You are then to create a word document and answer the following questions:
1. What exactly is a stack and explain what operations can be performed on a stack?
2. Exactly how is a stack implemented using the program stack1.java? To receive full credit for this answer, you must also give a very detailed explanation of what is happening in each method in this code.
3. Exactly how is a stack implemented using the program stack2.java? To receive full credit for this answer, you must also give a very detailed explanation of what is happening in each method in this code.
4. What exactly is a queue and explainwhat operations can be performed on a stack?
5. Exactly how is a queue implemented using the program queue1.java? To receive full credit for this answer, you must also give a very detailed explanation of what is happening in each method in this code.
6. Exactly how is a queue implemented using the program queue2.java? To receive full credit for this answer, you must also give a very detailed explanation of what is happening in each method in this code.
Attachment:- Stack-and-Queue-Program.rar