Question: Question 1 : linked list Library Book Tracker A student from the CSE department has borrowed several books from the UTA Library. Being a CSE
Question : linked list
Library Book Tracker
A student from the CSE department has borrowed several books from the UTA Library. Being a CSE student, he decided to create a Book Tracker for himself based on how he would like to track the borrowed books.
The student is keeping track of the pages of the books to determine reading time and their price to understand the utility of the book
Write a menubased program to manage the borrowed books with a linked list structure:
"The Great Gatsby" quad
To Kill a Mockingbird"
You need to use struct and linked list to store the Book information.
The list is empty when the program starts.
Fall Bhanu Jain
The menu should be as follows. Your choice is managed by switch statement and each choice requires a separated function except choice
C:UsersASUSCLionProjectsLibraryBookTracker exe
Menu:
Exit program
Clear screen
Print all borroned books
Borrow a book
Delete a book by name
Insert a book by position
Most expensive book
Least expensive book
Average pages
Enter a choice:
Exit program.
Enter a choice.
@
Process finished with exit code
Clear screen
Clears the screen and redisplay the menu
Enter a choice:
Menu:
Exit program
Clear screen
Print all borrowed books
Borrow a book
Delete a book by name
Insert a book by position
b Most expensive book
Least expensive book
Average pages
Enter a choice: Fall Bhanu Jain
Print all books.
Print all borrowed books and total days borrowed.
Average Pages:
Total Price:
Enter a choice:
borrow a book
Adds a book at the end of the list
Enter a choice:
Enter book name, pages, and price:TheGreatGatsby
Book added to the list.
Enter a choice:
Enter book name, pages, and price:
Book added to the list.
Enter a choice:
Enter book name, pages, and price:ToKillAMockingbird Book added to the list.
Enter a choice:
Delete a book by name.
Enter a choice.
Enter book name to delete:
Book deleted from the list.
Enter a choice. Please make sure the Average pages and Total price has to be updated properly.
Example
Insert a book by position.
Inserts a book by position.
add a book at the first position
Enter a choice:
Enter book name, pages, price, and position: Book inserted in the list.
Enter a choice:
Average Pages:
Total Price:
Enter a choice: add a book between two books
Enter a choice:
Enter book name, pages, price, and position:ThePowerOfNow Book inserted in the list.
Average Pages:
Total Price:
Enter a choice:
Most expensive book in the list
Enter a choice:
Most Expensive Book: ToKillAMockingbird USD
Enter a choice:
Least expensive book in the list
Enter a choice:
Least Expensive Book: ThePowerfNow USD
Enter a choice:
Average pages:
Enter a choice:
Average Pages:
Enter a choice:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
