Data structures important questions
Data structures important questions
Q.1. Write a Menu-driven Linked List Program in C language to store Flat Owner
information's with mentioned below functionalities.
****************************************************************************************************
Q2: Implement a menu-driven employee database using sorted doubly linked list with
following functionality: 25 Marks
● Following data should be taken as input from the user (Take the datatypes
carefully and efficiently)
○ Employee Name
○ Employee ID (Unique ID of 4 digit)
○ Gender
○ Designation (Post)
● Implement add, search, modify, show all, delete and exit a given Employee ID's
data from the list.
● Implement an add_node(...) function along with other functions, which should
take the input from user and store the node in sorted manner in the list based on
Employee ID.
● Make sure there should be no duplicate Employee ID entry in the list.
● Implement a counter on the menu page to show how many of employees are
currently employed in the organization.
● In exit function, implement the functionality to delete complete database and
deallocate all the memory.
● Code implementation should be neat and logic should be clear, time and space
complexity are to be taken into consideration as well.
****************************************************************************************************
● Write a function remove customer() to remove the customer from the front end of
the queue when he/she gets the ticket (dequeue() functionality).
● Write a function for counter closed() with the functionality that no customer
should be present at the counter (Exit( ) functionality).
****************************************************************************************************
Q4: Implement a menu-driven school portal using sorted doubly linked list with following
functionality: 25 Marks
****************************************************************************************************
Q5: Using singly linked list, implement a stack of max depth of 10, implement push, pop
and delete stack functions for the same. 15 Marks
****************************************************************************************************
Q6: Implement a hotel portal with menu-driven singly linked list with the following
options to the user: 25 Marks
****************************************************************************************************
Q7: Using singly linked list, implement a queue of max depth of 10, implement enqueue,
dequeue and delete queue functions for the same. 15 Marks