Description: We have information about publications of two types: book and article, where each of them has
Question:
Description: We have information about publications of two types: book and article, where each of them has number, title, author (first name, last name). The book has price, publisher and number of copies, the article has wage, magazine name, and number of pages. When entering the details of the publication the user must enter the full name of the author as one String but the system will divide it into first name and last name. Besides creating the constructors, getters, setters and toString we need to create a method for calculating the author income as follows: For the book its price*number of copies - 20% which goes to the publisher For the article it's 10% of the wage * the number of pages In the application you need to create a list of publications (books and articles) and let the user enter their data, you should use ArrayList not array. After entering details of books and articles, then must do the following: 1. Let the user enter the last name of an author and print out the details of all their publications either a book or an article. 2. Using a recursive method, find the total income for all authors. 3. Enter a publication number, find it then if it's a book print the publisher, if an article print the magazine name. 4. Print out the first and last name of any author who has an article with more than 20 pages. The grading scheme 1. Creating the classes with correct choices of inheritance 10 marks 2. Creating the constructors correctly 10 marks 3. Creating income methods correctly 10 marks 4. Creating the list and entering the data correctly 10 marks 5. Create the method of searching for the author by the last name 10 marks 6. Print the details of publications for the given author 10 marks 7. Create the recursive method correctly 10 marks 8. Create a method of finding the publication by its number 10 marks 9. Print the publisher for books and magazine for articles 10 marks 10. Print names of authors of articles with more than 20 Pages 10 marks Note: - If the program can't run due to errors, exceptions, or any reason you lose 50% of the total - Any identical or semi identical submission is considered as cheating and will be reported as an academic offensive
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi