Title | Week 6 Lab - Lecture notes 7 |
---|---|
Course | Data base systems |
Institution | University of East London |
Pages | 1 |
File Size | 73 KB |
File Type | |
Total Downloads | 24 |
Total Views | 171 |
hi hggdchch...
CN5005 - Data Structures and Algorithms Deadline: 6th Nov 2020 Week 6 Lab Module Leader: Rawad Hammad Total Marks: 5 Marks (Continuous Assessment)
Lab Exercise
1. Question One: (3 Marks) Implement a Java programme using the built in Stack class to store the names of your friends ( 5 friends only). Use the following operations to facilitate the functionalities of your programme:
Push to add the names Pop to remove names Display to print the names.
2. Question 2: (2 Marks) Write a simple stack programme implemented via Array to deal with 5 integer numbers using the key stack operations: push, pop, peek and size.
All the best, Module Team...