Specification: Consider a Library that contains Books written by Authors. Implem
ID: 3652273 • Letter: S
Question
Specification: Consider a Library that contains Books written by Authors.Implement a program to read and search the text database for a Library.
The project will be graded according the criteria for the final project - see below.
Elaboration:
Use the following classes:
Library
Book
Title
Genre
Author
Address
Use the ArrayList class to hold instances of Book and Author. Be sure to use generics appropriately.
Use a text data file with the following format - which you may extend, and may be extended in the later projects
B:index:Title:Genre:price:index of Author
A:index:name:street address:city:state:zip:phone
4. All the classes should be provided with appropriate:
constructors
toString implementations
additional methods
instance variables connecting the class to appropriate instances of other classe
5. A GUI that will display allow the user to minimally:
search on book or author index
search on Title
seach on Genre
6. The GUI class(es) should be distinct from the other classes in the program.
Explanation / Answer
////This might help you....... public class BookManager { private static final int Max = 1000; private static Book[]bookList= new Book[Max]; public static void addBook (Book i){ int NumBooks = Book.GetNumBooks(); bookList[NumBooks - 1] = i; int lo = 0; int hi = NumBooks - 1; for (int j = lo + 1;j=0 && hold.isbn.compareToIgnoreCase(bookList[k].isbn)Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.