A book is good if it satisfies the following condition


A Book is Good if it satisfies the following conditions: It has more than 100 pages and Its title must not end with the character 's'. If title ends wih the character 'e', then should not start with character 'a' The publisher of the book must be one of "Niho books", "DreamWorldz", "Pogo Books" and "Diamond Comics" The number of authors must be greater than 2. But if "CK Bose" is one of the authors, then this conditon is not required. If "Pran" is one of the authors, the publisher must be "Diamond comics". There should be atleast 10 pages per rupee cost of the book.

Write a method: boolean isGoodBook(String title, String publisher, int numPages, float price, String[] authors) title The title of the book publisher Name of the publisher of the book. numPages Number of pages in the book. price Price of the book in rupees. authors A string array containing the list of authors.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A book is good if it satisfies the following condition
Reference No:- TGS082462

Expected delivery within 24 Hours