Project Description Information available of the All the books in a certain library are stored in a file called "Library

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Project Description Information available of the All the books in a certain library are stored in a file called "Library

Post by answerhappygod »

Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 1
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 1 (38.7 KiB) Viewed 33 times
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 2
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 2 (38.7 KiB) Viewed 33 times
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 3
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 3 (58.37 KiB) Viewed 33 times
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 4
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 4 (51.62 KiB) Viewed 33 times
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 5
Project Description Information Available Of The All The Books In A Certain Library Are Stored In A File Called Library 5 (52.53 KiB) Viewed 33 times
the methods in the photos
Project Description Information available of the All the books in a certain library are stored in a file called "Library.txt". Each line in the file is a record about a book's unique information. The provided books information in that line are: The Serial number (consists of six digits) Book Title Book Authors Price Number of the copies available in the library. Number of the books borrowed from the libray Each of those information is seperated with a comma, and the authors are seperated with a colon. The information of the borrowed books are stored in a file called "BorrowedBooks.txt" The records in that file consists of: The Serial number of the borrowed book (Consist of 6 digits) The ID of the borrower. • Project Requirements: Your program should be a menu-driven one where the user will be asked to choose certain option and the program should continue to show the menu again as long as the user does not choose to exit. Sample Output: Library System: Search for a book 2 Add new book Remove a book Print the books information Borrow a book Return a book Exit What is your choice:
Further details on the system: Methods to search for a book If the user chooses that option he should be asked of he wants to search for it using the book's title (or part of it) or using the name of one of the authors (or part of the name) Depending on that search the user should go through the "Library.txt" file and print all the books matching that certain criteria. And if none was found an appropriate message should be printed. (the search needs to be case sensitive as the user can search using lower case letters or upper case one) 2 Method to add new book If the user chooses this option then the user needs to enter the required information for the book except for the number of borrowed books as that one should be made to o when it is first added. Few things you need to check for: The user should be asked about the number of the authors and depending on that he enters the authors name (remember when you add them the names are seperated by a colon) There must be at least one author name entered. The serial number is unique and should be validated as contianing 6 digits and that number should not exist in the file before). The title cannot be empty. Price is a double positive number. Number of currently available books should be a positive integer Once all those information are entered and are valid a record is add to the "Library.txt" file. And a message telling the user it was added successfully should be printed otherwise an appropriate message should be printed.
Method to remove a book: If the user chooses that option then he should be asked for the serial number (if an invalid serial number was given as in doesn't contain 6 digits an appropriate message should be printed. And then the user should be asked to either enter another serial number or return to the previous menu). If the serial number doesn't exist in the "Library.txt" file then an appropriate message should be printed. Once the serial number is found then its record should be removed from the "Library.txt", though the book can only be removed if no copies of it were borrowed and if they were an appropriate message should be printed. Method to print a book's information: If the user chooses this method then information on all of the the books in the file should be printed. Method to borrow a book: If the user chooses this option here are some rules to follow: A user can only borrow 5 books. A user cannot borrow more than the same copy of a book at the same time. To borrow the book the user should be asked for the serial number and his ID. When it is borrowed "Library.txt" file should be modified in the record of the available books in the library should be dcreased by 1, and the number of borrowed books should increase by 1. "BorrowedBooks.txt" should be edited to add the serial number and the ID to it after it is successfully borrowed. An appropriate message should be printed if: The book was borrowed successfully The serial number of the book was not found/invalid. The user already borrowed 5 books. The user already borrows a coppy of the same book. No availabe copy of the book in the library (All were borrowed)
Method to return a book: If the user chooses this option to return the book the user should be asked for the serial number and his ID. When it is returned "Library.txt" file should be modified in the record of the available books in the library should be increase by 1, and the number of borrowed books should decrease by 1. An appropriate message should be printed if: - The book was returned successfully. The serial number of the book was not found/invalid if the user enter an invalid menu option an appropriate message should be printed. Deliverables: Each team should submit a: Pseudo code and flowcharts on how they are going to approach the project. Project folder from netbeans with a working project A report that contains: Description on how the team members approched this solution. Each team member's contribution. Descriptions of the methods they created. Screenshots of the running code.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply