Answer to Question #40082 in Other Programming & Computer Science for kishan

Question #40082
Question # 773

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.
Expert's answer
The answer to the question is available in the PDF file

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog