Question: This is a single linked lists assignment. Assume that in a grocery store This is a single linked lists assignment. Assume that in a grocery

This is a single linked lists assignment. Assume that in a grocery store This is a single linked lists assignment. Assume that in a grocery store employees
backup each other. If an employee is absent, his/her backup will be called to fill in.
There are 10 employees.
You need to model backup plan using a circular linked list.
In the above figure, orange boxes represent pointers, and gray boxes represent one-
char data (names). Each employee is identified with a name, which is a randomly-
created capital letter (A-Z). All names are unique. A manager pointer makes a
reference to an employee, such as x in above scenario. Any employee can be
designated as a manager. There is only one manager in the store. In above model, x
backups T, B backups R, so on so forth. Following the creation of the circular linked
list model (assigning unique names at random), perform the following steps.
Task-1: Print name of the manager.
Task-2: Print complete backup list for 10 employees in "X->Y" format.
Task-3: Ask the user to enter a name in order to find backup of an employee, and
display the backup employee. Do this step repeatedly until user enters a dash(-). If no
employee is found, message this to the user.employees backup each other. If an employee is absent, his/her backup will be called to fill in. There are 10 employees.
You need to model backup plan using a circular linked list.
 This is a single linked lists assignment. Assume that in a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!