Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the Book Java Illuminated Third Edition Programming Exercise: You would modify the BookStore class in example 9.14 on pages 622 and 623 according to

In the Book Java Illuminated Third Edition

Programming Exercise:

You would modify the BookStore class in example 9.14 on pages 622 and 623 according to the following instructions:

Make sure to include the Book class, BookStore and BookSearchEngine class in your NetBeans project folder.

Modify the BookStore constructor so, when a BookStore object is created it is empty.

Implement a addBook( ) method that takes a Book object as a parameter and adds the book to the library.

Implement another version of addBook( ) method that takes, the title of the book, author and price as parameters and using the values in the parameters it creates a Book object and finally adds the book to the library.

Next modify the BookSearchEngine class that has a main( ) method as per the below instructions:

Create a BookStore object

Add any five books related to java or other programming languages to the BookStore.

Demonstrate use of both the versions of the addBook( ) methods.

Finally search for all the books that has java (treat the keyword as case-insensitive) and display the results of the search.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Know how to use reservations systems to inventory demand.

Answered: 1 week ago