Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions