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 1: linked list
Library Book Tracker
A student from the CSE department has borrowed several books from the UTA Library. Being a CSE 1320 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 menu-based program to manage the borrowed books with a linked list structure:
"The Great Gatsby" \(180\quad 50\)
"To Kill a Mockingbird" 28170
You need to use struct and linked list to store the Book information.
The list is empty when the program starts.
Fall 20241320 Bhanu Jain
The menu should be as follows. Your choice is managed by switch statement and each choice requires a separated function except choice 0).
C:\Users\ASUS\CLionProjects\1320-604\LibraryBookTracker, exe
Menu:
0) Exit program
1) Clear screen
2) Print all borroned books
3) Borrow a book
4) Delete a book by name
5) Insert a book by position
6) Most expensive book
7) Least expensive book
8) Average pages
Enter a choice:
0) Exit program.
```
Enter a choice.
@
Process finished with exit code 0
```
1) Clear screen
Clears the screen and re-display the menu
Enter a choice:1
Menu:
8) Exit program
1) Clear screen
2) Print all borrowed books
3) Borrow a book
4) Delete a book by name
5) Insert a book by position
b) Most expensive book
7) Least expensive book
8) Average pages
Enter a choice: Fall 20241320 Bhanu Jain
2) Print all books.
Print all borrowed books and total days borrowed.
Average Pages: 263.00
Total Price: 180.00
Enter a choice:
3) borrow a book
Adds a book at the end of the list
Enter a choice:3
Enter book name, pages, and price:The_Great_Gatsby 18050
Book added to the list.
Enter a choice:3
Enter book name, pages, and price:198432860
Book added to the list.
Enter a choice:3
Enter book name, pages, and price:To_Kill_A_Mockingbird 28170 Book added to the list.
Enter a choice:|
4) Delete a book by name.
Enter a choice.
4
Enter book name to delete:1984
Book deleted from the list.
Enter a choice. Please make sure the Average pages and Total price has to be updated properly.
- Example
5) Insert a book by position.
Inserts a book by position.
add a book at the first position
Enter a choice:5
Enter book name, pages, price, and position:198432860.001 Book inserted in the list.
Enter a choice:2
Average Pages: 263.00
Total Price: 180.00
Enter a choice: - add a book between two books
Enter a choice:5
Enter book name, pages, price, and position:The_Power_Of_Now 150402 Book inserted in the list.
Average Pages: 234.75
Total Price: 220.00
Enter a choice:|
6) Most expensive book in the list
```
Enter a choice:6
Most Expensive Book: To_Kill_A_Mockingbird (70.00 USD)
Enter a choice:|
```
7) Least expensive book in the list
Enter a choice:7
Least Expensive Book: The_Power_0f_Now (40.00 USD)
Enter a choice:
8)Average pages:
Enter a choice: 8
Average Pages: 234.75
Enter a choice:|
Question 1 : linked list Library Book Tracker 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 Programming Questions!