Question: Final Project - programming basics(Java) Assuming there is a library shelf that accommodates a maximum of 10 books. Create a program to manage book borrowing
Final Project - programming basics(Java)
Assuming there is a library shelf that accommodates a maximum of 10 books.
Create a program to manage book borrowing and return operations.





==m=== Do you want to add a new book ==e=== 1. yes 2. no Enter your choice (y) : 1. When the user selects y or Y, The user must enter the id, name and number of pages of the book * Suggested solution: You can create 3 Arrays, the first holding the id, the second the names of the books, and the third the number of pages =r=m== Do You want to add a new book ==n=== 1. Yes 2. no Enter your choice (Y):Y Enter Book Id : 1 Sorry, the ID already exists, enter a new ID 2 Enter Book Name : 3. When the user selects n or N the list of services is shown. NOTI: Each service has a function (Delete, Add, Update, Display All, search and largest number of pages) ====== Do you want to add a new book ====== 1. yes 2. no Enter your choice (y):n =r=x=r welcom user:=en=r== 1. Borrow a book (delete) 2. Return a book (add) 3. update a specific book (update) 4. Find the book with the largest number of pages S. View all books in the library (show) 6. Search for a book (Search) 7. exit Enter your choice: 1. Borrow a book (delete) 2. Return a book (add) 3. update a specific book (update) 4. Find the book with the largest number of pages 5. Display all books in the shelf(show) 6. Search for a book (Search) 7. exit Enter your choice: 1 Enter Book id: 3 The number of current books =2 Add =w==== welcom user=m==w=== 1. Borrow a book (delete) 2. Return a book (adi) 3. update a specific book (update) 4. Find the book with the largest number of pages 5. Display all books in the shelf(show) 6. Search for a book (Search) 7. exit Enter your choice: 2 Enter Book Id : 4 Enter Book Name : networks Enter Book Pages : 29 The number of current books =3 4) Find the book with the largest number of pages 5) Display all book \begin{tabular}{l} \hline manaw welcom usermwnwww \\ 1. Borrow a book (delete) \\ 2. Return a book (add) \\ 3. updace a specifie book (updace) \\ 4. Find the book with the largest number of pages \\ 5. Display all books in the shelf(show) \\ 6. Seareh for a book (Search) \\ 7. exit. \\ Enter your choice: 5 \\ book name is java numbers of Bookpages is 32 \\ book name is python numbers of Bookpages is 46 \\ book name is remoteNetworks nunbers of Bookpages is 29 \\ \hline \end{tabular} Search for book anawan welcog userananawan 1. Borrow a book (deletel 2. Return a book (add) 3. update a specifie book (update) 4. Find the book with the largest number of pages 5. Display all books in the shelf (show) 6. Search for a book (Search) 7.cts Encer your ehoiee: 6 Encer book id: 4 remoteNetworks is found Exit =wanww welcom useranwwnw= 1. Borrow a book (delete) 2. Return a book (add) 3. update a specific book (update) 4. Find the book with the largest number of pages 5. Display al1 books in the shelf (show) 6. Seareh for a book (Seareh) 7. exit Encer your choice: 7 BUYLD SUCcESsFUL (total time; 19 minuces 56 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
