Question: 2 A ) Write user defined functions to perform the following operations on circular singly linked list: i ) Print repeated elements in the given

2A) Write user defined functions to perform the following operations on circular singly linked list:
i) Print repeated elements in the given list.
ii) Right shift the list A counter clockwise for a given value of k.
For example: 102030405060 NULL and k=3, then 4050
60102030 NULL (Do not use array or stacks or queues)
2B) A book shop maintains the inventory of books that are being sold at the shop. The list includes
details such as author, bookld, title, price, publisher, and stock position. Whenever a customer wants
a book, the salesperson inputs the bookld and the system searches the list and displays whether it is
available or not. If it is not available, appropriate message is displayed. If it is available, then the
system displays the book details and requests for the number of copies required. If the requested
copies are available, the total cost of the requested copies is displayed, otherwise the message
"Required copies not in stock" is displayed.
Write a suitable class definition with Book as class name with suitable data members and member
functions.
2C) Illustrate the conversion of the below infix expression to postfix expression, clearly showing the stack
operations.
AB+(CD)*(E-F)**HJK*(L)
 2A) Write user defined functions to perform the following operations on

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!